Author Topic: Are the new tags (details, index...) useful  (Read 2890 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Are the new tags (details, index...) useful
« on: January 18, 2010, 02:50:39 AM »
Hello,

Can someone explain to me where can I use the new additional tags like categories, details,index, because I didn't get it yet.

Quote
Added more conditional tags (categories, details,index, member, postcards, register, search, top) for using {if index}...{if index} for homepage, {if details}...{endif details} for details.php page, etc

Do you have an example for me please? I want to see how useful the new tags are.

Thanks in advance,
Cruxy

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Are the new tags (details, index...) useful
« Reply #1 on: January 18, 2010, 03:41:47 AM »
You can use them in any template, but mostly it usefull in templates that being used on different pages (user_loginform.html or header.html for example)
You can use these tags to display/hide part of the template based on which page is opened.

For example add into user_loginform.html
Code: (HTML template) [Select]
{if details}<p>this text will only be visible for guests when they visit details.php page</p>{endif details}
{ifno categories}<p>this text will be visible for guests on ALL pages EXCEPT on categories.php page</p>{endifno categories}
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Are the new tags (details, index...) useful
« Reply #2 on: January 18, 2010, 10:59:28 AM »
Now I understand. Very useful. Thanks v@no.