Post by nil2567 » Thu Aug 16, 2012 7:01 am

hi,

how to know if opencart layout is normal flow, or fi position left is in use by another module, or if position right is in use by another module?

generaly there is 4 position: content_bottom, content_left, content_ right, content_top.

I need to knowin the current page, with layout are in use for me to style my css in my module.

any ideas?

New member

Posts

Joined
Wed Oct 13, 2010 11:47 pm

User avatar
Active Member

Posts

Joined
Thu Nov 11, 2010 6:11 pm
Location - New Zealand (Tokomaru, Palmerston North)

Post by nil2567 » Fri Aug 17, 2012 7:35 pm

mdule category.
if I aplply to home page a category to the left my banner will go to the right.

So, i need to know in the slideshow banner that this layou is pushing hin to the right to apply a diferente css.

I know how to get the current page layout_id.

I donwt know how to know if the content div is to left or right layout

Attachments

layout.jpg

layout.jpg (85.9 KiB) Viewed 901 times


New member

Posts

Joined
Wed Oct 13, 2010 11:47 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by nil2567 » Sat Aug 18, 2012 2:18 am

I know that.
I just want to do it automatic becouse I'm doing a diferent banner, but when the layout change i need to know that it has changed to change my css hehehe

New member

Posts

Joined
Wed Oct 13, 2010 11:47 pm

Post by MarketInSG » Sat Aug 18, 2012 9:25 am

you can get current route with

Code: Select all

$this->request-get['route'] == 'route/route';


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore
Who is online

Users browsing this forum: No registered users and 4 guests