Re: [SMARTY] Smarty function as default value
| From: | Monte Ohrt | Date: | Thu, 30 Sep 2004 13:23:44 +0000 |
| Subject: | Re: [SMARTY] Smarty function as default value | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11838@lists.php.net to get a copy of this message | ||
You can't nest smarty tags, and insert functions are non-cachable so imbedding them into cachable content won't work anyways.
Maybe you are better off adjusting your insert function in this case:
{insert name=url var=$smarty.request.return}
Then it is up to the insert function to display the appropriate thing.
Monte
Jiri Nemec wrote:
Hello, is there some way how to pass as default value to "default" modifier own smarty function? I need something like this, but it clearly doesn't work. {$smarty.request.return|default:{insert name=url}} Thank you for replies.