Hi!
Is it possible to access blobs in {php} blocks inside pages and templates?
For instance:
Thanks in advance!
Blobs inside {php}
Re: Blobs inside {php}
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:
Not tested, of course. But I believe this should work.
Make user defined plugin. Call it my_urlencode. In the code, put:
Code: Select all
echo urlencode($params['value']);
Code: Select all
{capture name='bloboutput'}{html_blob name='blah'}{/capture}
{my_urlencode. value=$smarty.capture.bloboutput}