For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > September 2004 > Re: [SMARTY] Smarty function as default value









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] Smarty function as default value
Boots

2004-09-30, 11:38 am

--- Jiri Nemec <konference@menea.cz> 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.


{if !$smarty.request.return}{insert name=url}{/if}

xo boots
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com