Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to display values based on link-property field & 'set values'

Quote Reply
How to display values based on link-property field & 'set values'
Here is the situation:

Links with below properties:
rand1 = a
rand2 = b
rand3 = c
rand4 = d
rand5 = e
rand6 = f
rand7 = g
rand8 = h
....
....
rand26 = z

Note: values in rand1 to rand26 are inserted randomly. So, rand1 for one listing can be 'a', while for other listing, it can be 'x', while for some other listing it could be 'k'.
------------------------------------

In detailed.html I am setting up following:

<%set a = 'text string a' %> <br>
<%set b = 'text string b' %> <br>
<%set c = 'text string c'%> <br>
<%set d = 'text string d'%> <br>
<%set e = 'text string e' %> <br>
<%set f = 'text string f' %> <br>
<%set g = 'text string g'%> <br>
<%set h = 'text string h'%> <br>
....
....
<%set z = 'text string z'%> <br>
-----------------------------------------------

Now, 'suppose' on detailed.html that would be built on Sunday, below 'rand' are to be shown.

rand1 (value = a)
rand5 (value = e)
rand4 (value = d)
rand8 (value = h)
.....

I know if I were to use <%rand1 %>, I would get output 'a', however, I am trying to get the output 'text string a'.


So, using 'values' of 'rand', how do I display values as below"

1. text string a
2. text string e
3. text string d
4. text string h
.........................................

I hope I was able to put my thoughts in words if not, I can try to explain using different words.


Thank you.

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread How to display values based on link-property field & 'set values' VishalT 3286 Feb 29, 2020, 10:25 PM
Thread Re: [VishalT] How to display values based on link-property field & 'set values'
Andy 3203 Mar 3, 2020, 5:15 AM
Post Re: [Andy] How to display values based on link-property field & 'set values'
VishalT 3162 Mar 6, 2020, 6:07 AM