Hi there,
I’m moving some articles into an archive section of my site and instead of making duplicate templates I thought I’d add them all to an archive category and assign that category Id to a global variable and then use that global variable in my {exp:weblog:entries} tag like so…
Global Variable ( {current_year_category} )
16Template
{exp:weblog:entries weblog="artists" orderby="random" limit="1" dynamic="off" category="{current_year_category}" }When I view my template it doesn’t show anything in that section. But if I use the {exp:weblog:entries} tag normally
{exp:weblog:entries weblog="artists" orderby="random" limit="1" dynamic="off" category="16" }... then I get the entries showing. My global variable only has the id of the category in it and nothing else.
Any ideas would be really appreciated.