RetailGUY Posted May 23, 2013 Share Posted May 23, 2013 Hi Guys I recently transplanted the image slider for homepage module to "top of pages", this looks great on the homepage, but takes up too much vertical space when exploring product pages ect. Is there a way of limiting it to only the homepage? https://digitalempire.co.za/ Thanks RetailGuy Link to comment Share on other sites More sharing options...
vekia Posted May 23, 2013 Share Posted May 23, 2013 of course, you can do it in many ways. go to the modules -> positions search for "display top" section, and click on edit button near the homepage slider module you will see form with position specification, add exceptions - you have to add all pages there except homepage (index) second way to modify is a editing module code (template file only) are you ready for it? 2 Link to comment Share on other sites More sharing options...
RetailGUY Posted May 23, 2013 Author Share Posted May 23, 2013 Hi Vekia Thank you, I would prefer to edit the code, so let do that, though note I am still quite a noob! Link to comment Share on other sites More sharing options...
vekia Posted May 24, 2013 Share Posted May 24, 2013 Hi Vekia Thank you, I would prefer to edit the code, so let do that, though note I am still quite a noob! okay, so let the show begin;) go to the: modules/homeslider//homeslider.tpl file (remember that this file may exists in the theme/modules//homeslider/ directory - if so - you have to edit this file) at the beginning of the file insert this: {if $page_name == 'index'} At the end of the file put this: {/if} and that's all poor show 1 Link to comment Share on other sites More sharing options...
RetailGUY Posted May 24, 2013 Author Share Posted May 24, 2013 Job well done! Yeah nice easy one for you! Thanks so much looks way better!! Link to comment Share on other sites More sharing options...
RetailGUY Posted May 24, 2013 Author Share Posted May 24, 2013 oh by the way it was "homeslider.tpl" but I knew what you meant! Thanks again for you help. Link to comment Share on other sites More sharing options...
vekia Posted May 24, 2013 Share Posted May 24, 2013 it was my mistake, sorry, it was late ;D thanks for information, i corrected my post i marked this thread as solved regards Link to comment Share on other sites More sharing options...
J.Sahu Posted November 6, 2013 Share Posted November 6, 2013 Thanks Vekia for the help. Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2013 Share Posted November 6, 2013 you can also achieve this with exceptions (proper way!) in modules > positions tab near the homeslider module click edit button and define exceptions you can for example disable modules on all pages, and just enable it on "index" (homepage) only Link to comment Share on other sites More sharing options...
J.Sahu Posted November 6, 2013 Share Posted November 6, 2013 Yes I've not edited any code just made exceptions, the way you've explained. Thank You 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