jleesaxon Posted July 3, 2013 Share Posted July 3, 2013 (edited) I currently have my front page set up as a 2-column with categories on the left and the image slider module on the right (http://www.elliscamera.com) But I want a single (static) image instead of the slider. Is there a way to do that? Edited July 7, 2013 by jleesaxon (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 3, 2013 Share Posted July 3, 2013 Hi, You can do it 2 ways: 1- Easy Disable the slider and any modules that appear there. Open up index.tpl in your theme folder and hardcode your image before or after {$hook_home} 2- DIfficult Clone the block advertising module, change all names and references to a custom name you choose. Add the hookDisplayHoome function instead of the hookLeftColumn (or right column) and assign the image url as variable. More complicated. but you can change theimage from the back office! Link to comment Share on other sites More sharing options...
Paulito Posted July 3, 2013 Share Posted July 3, 2013 Good morning Just a thought, if you have the image slider setting as: Height: whatever you want px Width: whatever you want px Speed: 0 ms Pause: 0 ms Loop no Add only one image and save these settings you will get what you want,well, it works for me Paul Link to comment Share on other sites More sharing options...
jleesaxon Posted July 5, 2013 Author Share Posted July 5, 2013 (edited) Nemo1, thank you. Your simple method works, and I may try the difficult method later. However, I don't understand why the simple method works. I would expect hardcoding my image before/after {$hook_home} , which presumably places everything, to put my image before/after everything. How does it know to go to the center column? Edited July 5, 2013 by jleesaxon (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 6, 2013 Share Posted July 6, 2013 The center column is opened before including that file, and closed after. Everything in that filw will fall into the center column, unless you edit the header and footer.tpl Link to comment Share on other sites More sharing options...
jleesaxon Posted July 6, 2013 Author Share Posted July 6, 2013 Okay, let's see if I understand how the front page gets generated: layout.tpl loads first with "includes" that load header.tpl and footer.tpl. Then footer.tpl's "if content" script loads whatever is tagged as main / center column content for the current operation - which when you're starting is index.tpl. Yes? No? Link to comment Share on other sites More sharing options...
NemoPS Posted July 6, 2013 Share Posted July 6, 2013 no Each content is loaded through a controller, which calls the needed tpl file for the center column Link to comment Share on other sites More sharing options...
jleesaxon Posted July 7, 2013 Author Share Posted July 7, 2013 This stuff is way over my head haha, I need to stick to the CSS 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