Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 5 matches
Smarty Forum Index
Author Message
  Topic: selecting variable to print based on content
marvin

Replies: 4
Views: 5938

PostForum: General   Posted: Fri Jul 01, 2005 12:50 pm   Subject: selecting variable to print based on content
Hm, I tried that before my last reply and it didn't work but after trying again it does. Must have been a typo.

Thanks for the help. This makes my form handling a lot easier.
  Topic: selecting variable to print based on content
marvin

Replies: 4
Views: 5938

PostForum: General   Posted: Fri Jul 01, 2005 10:00 am   Subject: selecting variable to print based on content
I'm really aiming to write a modifier since I want to use this in a form like this:

<input type="text" value="sysname" value="{$SYSTEM.name|if_isset:"sysna ...
  Topic: selecting variable to print based on content
marvin

Replies: 4
Views: 5938

PostForum: General   Posted: Thu Jun 30, 2005 9:03 pm   Subject: selecting variable to print based on content
Hi,
I'm wondering if somebody can help me implement the following in smarty:

I have two variables $A and $B. Now I want smarty to output the variable $A if $B is *not* set and $B if $B *is* set. H ...
  Topic: ADVANCED: Recursion with Smarty
marvin

Replies: 156
Views: 420318

PostForum: Tips and Tricks   Posted: Tue May 13, 2003 11:51 am   Subject: ADVANCED: Recursion with Smarty
Thanks for the pointer!
Does there exist documentation or an example for this repeatable block feature somewhere?
  Topic: ADVANCED: Recursion with Smarty
marvin

Replies: 156
Views: 420318

PostForum: Tips and Tricks   Posted: Mon May 12, 2003 4:27 pm   Subject: ADVANCED: Recursion with Smarty
Does anyone know if there is a way to handle recursion gracefully with smarty?
What I'm trying to do is somethin that looks a bit like XSLT:


{template name="section" param1=" ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP