Page 1 of 1

layout

Posted: Thu Aug 16, 2012 7:01 am
by nil2567
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?

Re: layout

Posted: Fri Aug 17, 2012 6:36 am
by Jeremy Fisk
Sorry... its hard to understand what you mean... please post an image of what you are trying to achive... cheers

jem

Re: layout

Posted: Fri Aug 17, 2012 7:35 pm
by nil2567
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

Re: layout

Posted: Fri Aug 17, 2012 10:33 pm
by MarketInSG
Try setting your slideshow with a smaller width

Re: layout

Posted: Sat Aug 18, 2012 2:18 am
by nil2567
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

Re: layout

Posted: Sat Aug 18, 2012 9:25 am
by MarketInSG
you can get current route with

Code: Select all

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