I'm trying to give one information page a completely custom layout in OpenCart 1.5.1.3.
I understand that I need to create a new "Layout" under System > Design > Layouts. I have done that.
I also understand that I need to set "Design Override" for my information page to my new layout. I have done that.
What I don't understand, is how does the system know to tie "Keith's Custom Layout" back to the-custom-layout.tpl?
i.e. how do I tell OpenCart to use the-custom-layout.tpl for the new layout I created?
I think you are getting confused.
Layouts have absolutely nothing to do with templates.
They are purely for organising/displaying modules.
What you are looking for is a different template for one page which is going to be really tricky to accomplish
First you will need to find the id of your info page.
Then you need to edit the information.php controller file to tell it what template to use if the id is x
You may also need to edit the header.tpl file to tell it to load a different external stylesheet again based on the info id
Layouts have absolutely nothing to do with templates.
They are purely for organising/displaying modules.
What you are looking for is a different template for one page which is going to be really tricky to accomplish
First you will need to find the id of your info page.
Then you need to edit the information.php controller file to tell it what template to use if the id is x
You may also need to edit the header.tpl file to tell it to load a different external stylesheet again based on the info id
Thanks, that's more clear now.
It seems very, very silly that they call them "Layouts" when they don't actually have anything to do with what the site layout looks like.
I found that you can also accomplish what I'm trying to do by just editing the information/information.tpl template, instead of having to actually edit the controller.
It's not complicated at all- it's actually quite simple.
It seems very, very silly that they call them "Layouts" when they don't actually have anything to do with what the site layout looks like.
I found that you can also accomplish what I'm trying to do by just editing the information/information.tpl template, instead of having to actually edit the controller.
It's not complicated at all- it's actually quite simple.
Hi Consolibyte,
I'd like to modify one of the information pages - so I'd be very interested to hear exactly what you changed in the information.tpl template, if that's ok.
To be more precises, I need to add tabs to the About page, without also adding these to the other info pages.
Thanks,
Dan
I'd like to modify one of the information pages - so I'd be very interested to hear exactly what you changed in the information.tpl template, if that's ok.
To be more precises, I need to add tabs to the About page, without also adding these to the other info pages.
Thanks,
Dan
Who is online
Users browsing this forum: No registered users and 12 guests