Post by consolibyte » Tue Dec 13, 2011 1:13 am

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?

Newbie

Posts

Joined
Sat Dec 05, 2009 11:31 am

Post by uksitebuilder » Tue Dec 13, 2011 10:24 pm

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

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by consolibyte » Wed Dec 14, 2011 3:07 am

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.

Newbie

Posts

Joined
Sat Dec 05, 2009 11:31 am

Post by dantheman50_98 » Tue Apr 03, 2012 7:17 pm

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

Active Member

Posts

Joined
Sat Sep 18, 2010 2:18 am
Who is online

Users browsing this forum: No registered users and 12 guests