Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [Andy] What is the right way to call this Variable on Detail page?: Edit Log

Here is the list of edits for this post
Re: [Andy] What is the right way to call this Variable on Detail page?
 
Quote:
Is there any reason you are doing all this in the template?
Actually yes. :(

I understand it's a long way, however, Considering how it needs to be displayed here are few things:

1. About 14 different rand values need be displayed on a detailed page & they need to be random for every listing.

2. Position of rand1 .. to .. rand26 will be different according to weekdays. + Value of keya .. to .. keyz will be different for according to the weekday. (also, both rand & key can't be repeated/duplicate, i.e. in display they have to be unique)

4. Along with this, on detailed.html I also need to add 'additional info' as either 'prefix' or 'suffix' for certain 'key' values for certain listings.


Initially, I considered the idea of having actual values in link properties & randomizing it, however since I need to use them multiple times & actually add additional info (based on link ID) in the output.

I did consider a few other methods, however, based on the requirements, idea mentioned on first post seems like the best way.. but that is where I am stuck & need your help..


If it is not impossible, setting up multiple vars as shown in first post, would be very helpful to achieve what I need to get done.

Thank you.

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

Last edited by:

VishalT: Mar 10, 2020, 8:01 AM

Edit Log: