Page 1 of 1
Blobs inside {php}
Posted: Fri Apr 07, 2006 12:06 pm
by rcp
Hi!
Is it possible to access blobs in {php} blocks inside pages and templates?
For instance:
Thanks in advance!
Re: Blobs inside {php}
Posted: Fri Apr 07, 2006 12:21 pm
by Ted
Not directly. The way I would handle this is...
Make user defined plugin. Call it my_urlencode. In the code, put:
Then, in your template/page, do:
Code: Select all
{capture name='bloboutput'}{html_blob name='blah'}{/capture}
{my_urlencode. value=$smarty.capture.bloboutput}
Not tested, of course. But I believe this should work.
Re: Blobs inside {php}
Posted: Fri Apr 07, 2006 4:05 pm
by rcp
Oh, how cumbersome...
Many thanks!