Re: [SMARTY] Cycle in bgcolor issue and workaround
| From: | Monte Ohrt | Date: | Tue, 07 May 2002 21:51:19 +0000 |
| Subject: | Re: [SMARTY] Cycle in bgcolor issue and workaround | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4074@lists.php.net to get a copy of this message | ||
Try removing the trailing "\n" output in the plugin function. That was put in there because this:
{cycle}
{cycle}
{cycle}
was coming out as
foofoofoo
instead of
foo
foo
foo
as you would probably expect with carriage returns between them in the template.
Monte
Jason Sweat wrote:
I am using the cycle in Smarty 2.1.1 When I specify <tr bgcolor="{cycle values="white,white,silver"}"> the output looks like:-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.<tr bgcolor="white ">and renders funny in IE5.5 (completely different colors for some reason. By doing {cycle values="white,white,silver" assign="bgcolor" print="false"} <tr bgcolor="{$bgcolor}"> I get the expected result. I even tried {strip} around the <tr> and it still had the spaces and a new line. Any way to remove the spaces and the new line from the output? Thanks. Jason __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com