To help my less-than-tech-savvy colleagues who occasionally have to edit templates, I want to be able to set a variable at the top of a template (or somewhere else) defining the number of days that a weblog:entries tag will pull through. That will save them wading through code, I hope. I hoped I could do it with a global variable, but that didn’t seem to work.
So, it would be:
variable = X;
{exp:weblog:entries weblog=“site” display_by=“day” limit=”{x}”}
