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
-------------------------------------------------------
Quote Reply
Re: [VishalT] How to display values based on link-property field & 'set values' In reply to
Hi,

I'm a bit confused as to what you are trying to achieve? It seems a bit complicated / slow / long winded :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] How to display values based on link-property field & 'set values' In reply to
Hi Andy,

Just send you a message on your email.

Vishal
-------------------------------------------------------