
Dave
Staff
/ Moderator

Oct 7, 2002, 10:03 AM
Post #4 of 8
(6935 views)
Shortcut
|
|
Re: [MalaK_3araby] Template Logic, good or bad?
[In reply to]
|
Can't Post
|
|
>What other stuff can we do with this? can you give us more examples on what we can control? Well you'd have basic programming logic. So you'd have if, else if, else, math operators, etc. So, all those times in the forum when people ask about displaying an image or some content in one situation, but not another, they'd be able to put some tags around it like this: <[ if situation1 ]> Show this html <[ end if ]> <[ if situation2 ]> Show this other html <[ end if ]> One example might be if we supported multiple page articles in the future and you wanted to publish some content only on the last page. If their was a placeholder for total_pages and current_page you could say <[ if current_page == total_pages ]> display this content here <[end if]> Which would mean you on the last page in the set. Does that make any sense? : ) Dave Edis - Senior Developer interactivetools.com
|