Jump to content

if/else statement in template files.


Guest

Recommended Posts

I am trying to figure out if its possible to make some sort of if/else statement in the template files.

I want to have some items that show up through out the site but not on the home page and some things want on the home page and no ware else. I think with learning how to do this I can make awesome skins by controlling the style of my layout by including or excluding items on the home page.

I just need help finding out if there's any info about this on the forums or if anyone knows how to accomplish this.

Link to comment
Share on other sites

you cannot use an if/else conditional in template files, XTemplate system allows only html, placeholders and parsing markers in template files.

Each template file has a corresponding php file, most of these are found in includes/boxes and includes/content

The global .tpl files correspond to the php files in the root of your store.

Look to the php files to find solutions you seek.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...