solved Changing header depending on template

Nmaster88
Nmaster88
@nmaster88
8 years ago
94 posts
Hello,

I now this may be a stupid question,
but is there a command to show or not content in the header (or footer) depending on the template?

ex:a div that i want to show only on the index.tpl
updated by @nmaster88: 05/12/16 09:27:12AM
michael
@michael
8 years ago
7,715 posts
the name of the template your are in should show up as a variable in the {debug}

Docs: "{debug}"
https://www.jamroom.net/the-jamroom-network/documentation/contents

then you can do an {if} statement to check against that:

Docs: "Template blocks"
https://www.jamroom.net/the-jamroom-network/documentation/development/3126/template-blocks
Nmaster88
Nmaster88
@nmaster88
8 years ago
94 posts
Thank you, as easy as that.

Tags