Re: [SMARTY] Modifiers on embedded variables
boots <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
--- "A.J. Brown" <[email protected]> wrote: > Is there any way to use modifiers on embedded variables using > backticks? [..snip...] > However, I've run across similar situations where using {assign} was > not appropriate, and I've had to resort to formatting the string in > the business logic :(. Is there any way to use modifiers on > `backticked` variables that I'm missing? No, it is not supported. Backticks do not start a new context. Why is assign not appropriate? Have you considered {capture} for more complicated texts? Another trick when using {popup} is to use a JS callback to assign the text: <script> function MyPopuptext() {ldelim} return '{$popuptext|escape:"javascript"}'; {rdelim} </script> <a href="javascript:void(0);" {popup function="MyPopuptext()"}>{$data[list].idusers}</a> boots __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php