Cosmi Posted May 23, 2010 Share Posted May 23, 2010 Hello, I'm developing a theme for PrestaShop and I encounter a situation.I want to display a bunch of code ONLY on homepage. I tried using {if HOOK_HOME} my code {/if} , but this doesn't work.Any help will be appreciated.Have fun!Cosmi Link to comment Share on other sites More sharing options...
razaro Posted May 23, 2010 Share Posted May 23, 2010 Use following code {if $page_name != 'index'} ... {/if} or if it is module add exception in Back Office » Modules » Positions and click on edit module position. Link to comment Share on other sites More sharing options...
Cosmi Posted May 23, 2010 Author Share Posted May 23, 2010 It works!Thank you very much! Link to comment Share on other sites More sharing options...
rocky Posted May 24, 2010 Share Posted May 24, 2010 Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now