Reply to Re: [SMARTY] Modifiers on embedded variables

Your name:

Reply:


Posted by boots on 11/05/05 03:34

--- "A.J. Brown" <aj@bitnotion.com> 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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация