webcrafter Posted January 10, 2011 Share Posted January 10, 2011 Hello all,I may very well be blind but haven't been able to find this info anywhere so far. I am attempting to create a template that has an index page that is completely different than the other pages of presta. As such I do not want the modules etc to show up on the front page but do want them on all other pages. So how do I go about not including the $HOOK and columns to the index but still get the page to show?Any help would be greatly appreciated...I am almost there, this is about my last problem to overcome...I really don't want to go back to Zen-Cart Presta seems much more robust...just need to get this figured out fast.Thanks In Advance Link to comment Share on other sites More sharing options...
webcrafter Posted January 10, 2011 Author Share Posted January 10, 2011 Okay so I pretty much have it figured out I thinkIn order to get something to just display on the index page such as a flash or a picture I used {if $page_name eq 'index'} my code for the flash etc {/if} In the header.tpl fileIn order for the modules to show up on the other pages but not on the index I opened up the index.php file in the main directory and removed the line $smarty->assign('HOOK_HOME', Module::hookExec('home')); Now the hooks show up on the other pages but not on the index page....I am still working on everything if you know of a better way, or see a problem with this method please let me know.Thanks,Brad 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