Passing parameters when invoking HTMLBlobs/Globalcontent
Posted: Sun Feb 05, 2006 10:54 am
Stop me if this one is already on the list...
I've been using HTML blobs as content blocks for the site I'm working on now. Kind of like a user-defined tag, except that it's written in Smarty instead of PHP. I often want to pass parameters to these blobs, like so:
The production code doesn't seem to allow that. Instead, I do something like this:
Which is the same thing, but more clunky.
Michael
I've been using HTML blobs as content blocks for the site I'm working on now. Kind of like a user-defined tag, except that it's written in Smarty instead of PHP. I often want to pass parameters to these blobs, like so:
Code: Select all
{block-sidexref pages=$xref}
Code: Select all
{include file="htmlblob:block-sidexref" pages=$xref}
Michael