[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-dev
Subject:    Re: [SMARTY-DEV] plugin params
From:       boots <jayboots () yahoo ! com>
Date:       2003-12-15 18:50:53
[Download RAW message or body]

--- Simon Benjamin <info@smarty.hu> wrote:
>
img="`$CONT_COMM_URL`/images/pg_`$PRODUCT.NAME|strtolower`_`$pic`_%d.jpg"
>
> How to use |modifiers ?

Hi,

While backticks allow you to embed vars into double quotes, they do not
permit all of Smarty's features to be embedded. To use the modifier,
you must first assign a temp var:

eg:
{assign var=temp value=$PRODUCT.NAME|strtolower}

Your image param would then be something like:
img="`$CONT_COMM_URL`/images/pg_`$temp`_`$pic`_%d.jpg"

xo boots

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic