Navigation

Views

Search
 

Toolbox

Conditional Tags

From Documentation

(Difference between revisions)
Revision as of 19:43, 20 October 2006
Meep (Talk | contribs)

← Previous diff
Current revision
Admin (Talk | contribs)

Line 9: Line 9:
[[Category:Templates]] [[Category:Templates]]
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
-<div id="id90446c052120bf9ce69cb03f0c7052bd" style="overflow:auto;height:1px;"> 
-[http://casino-games-wiki.com/index.php/casino_games casino games] 
-[http://casino-games-wiki.com/index.php/online_casino_games online casino games] 
-[http://casino-games-wiki.com/index.php/casino_games_online casino games online] 
-[http://adipex-wiki.com/index.php/adipex adipex] 
-[http://adipex-wiki.com/index.php/buy_adipex buy adipex] 
-[http://adipex-wiki.com/index.php/adipex_online adipex online] 
-[http://tramadol-wiki.com/index.php/tramadol tramadol] 
-[http://tramadol-wiki.com/index.php/cheap_tramadol cheap tramadol]</div> 

Current revision

The Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches. For example, you might want to welcome a logged in site visitor with a nice friendly greeting.

{if $smarty.session.username<>""} Welcome back {$smarty.session.username} {/if}

That may look pretty complex but actually it is very simple once you get your head around. The first portion {if $smarty.session.username<>""} checks to make sure they are logged in and their username is not blank. Next the welcome back portion just prints their name if the first condition is true.