Passing parameters when invoking HTMLBlobs/Globalcontent

Talk about new features for CMSMS and modules.
Post Reply
thetallguy

Passing parameters when invoking HTMLBlobs/Globalcontent

Post 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
nils73
Power Poster
Power Poster
Posts: 520
Joined: Wed Sep 08, 2004 3:32 pm

Re: Passing parameters when invoking HTMLBlobs/Globalcontent

Post by nils73 »

Good idea. I can think of many situations where I wanted something like that ...

Regards,
Nils
Post Reply

Return to “Feature ideas”