Page 1 of 1

Passing parameters when invoking HTMLBlobs/Globalcontent

Posted: Sun Feb 05, 2006 10:54 am
by thetallguy
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:

Code: Select all

{block-sidexref pages=$xref}
The production code doesn't seem to allow that.  Instead, I do something like this:

Code: Select all

{include file="htmlblob:block-sidexref" pages=$xref}
Which is the same thing, but more clunky.

Michael

Re: Passing parameters when invoking HTMLBlobs/Globalcontent

Posted: Sun Feb 05, 2006 1:38 pm
by nils73
Good idea. I can think of many situations where I wanted something like that ...

Regards,
Nils