Fórumok

Page layout in custom theme stuck to 1 column

thumbnail
henk huisman, módosítva 11 év-val korábban

Page layout in custom theme stuck to 1 column

New Member Bejegyzések: 11 Csatlakozás dátuma: 2010.11.21. Legújabb bejegyzések
I created a custom theme using Eclipse. On my home machine (PC Wind7) all works fine and I can choose any page layout I want.
On the production machine I deployed the WAR-file I created locally.
In production I can change the page layout to any setting (30/70), but the result is always a page layout of 1 column.
Anyone an idea where to look for?

Thanks in advance
Henk Huisman
thumbnail
Maarten van Heiningen, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column

Regular Member Bejegyzések: 174 Csatlakozás dátuma: 2009.02.05. Legújabb bejegyzések
Hello Henk,

This should not be the case. It should be the case that if you select a layout for a given page this should them be set.

Can you provide more details?

My first suggestion is that on your production machine you have the settings that cache your page layouts and themes.

See your portal-ext.properties settings for
layout.template.cache.enabled=false


Best Maarten
thumbnail
henk huisman, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column

New Member Bejegyzések: 11 Csatlakozás dátuma: 2010.11.21. Legújabb bejegyzések
Maarten thanks for your suggestion. Much appreciated.

Some more detail.
If I look at the source of the page that is generated by Liferay it definitely shows the divs with column_1 and column_2.
But in the GUI I just can not drop a portlet (eg web content) in the second column. It always drops it in column 1.

If I switch to the classic theme everything works fine; but if I use my custom theme the problem occurs.

Henk
thumbnail
Maarten van Heiningen, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column

Regular Member Bejegyzések: 174 Csatlakozás dátuma: 2009.02.05. Legújabb bejegyzések
Hi Henk,

Okay there are two things.

1) The portlets that are placed on your page using the quick link (items directly under the Add section) are always placed in the first column first position.

2) please check your css for the second column when using your theme. You can use firebug etc. Please check if the css code for this column is set to display none or display hidden because the extra column css class is set on this set to 'empty'

Best,
Maarten
thumbnail
henk huisman, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column

New Member Bejegyzések: 11 Csatlakozás dátuma: 2010.11.21. Legújabb bejegyzések
Indeed, probably has to do something with the css

In internet explorer 9 things seem to work fine!!

There are some ie specific references (mostly ie6 and ie7) in my custom.css like

.ie .lfr-portlet-title-editable-content {
margin-top: 4px;
}


I am completely lost

Henk
thumbnail
Maarten van Heiningen, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column

Regular Member Bejegyzések: 174 Csatlakozás dátuma: 2009.02.05. Legújabb bejegyzések
Hi Henk,

This part of the css has nothing to do with not being able to place a portlet into your second column.

henk huisman:

There are some ie specific references (mostly ie6 and ie7) in my custom.css like
.ie .lfr-portlet-title-editable-content {
margin-top: 4px;
}


Is it possible to copy (printscreen of just firebug) just the section of rendered html from firebug into the post so I can see the generated code and hopefully part of your css?
So you can leave out project specific stuff...

Best Maarten
thumbnail
henk huisman, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column

New Member Bejegyzések: 11 Csatlakozás dátuma: 2010.11.21. Legújabb bejegyzések
Hi Maarten,
would it be an idea if I gave you temporary access to the portal I am building?
Henk
thumbnail
Maarten van Heiningen, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column

Regular Member Bejegyzések: 174 Csatlakozás dátuma: 2009.02.05. Legújabb bejegyzések
Hello Henk,

I send you a friend request on your Liferay profile so we can chat.

Best,
Maarten
thumbnail
henk huisman, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column

New Member Bejegyzések: 11 Csatlakozás dátuma: 2010.11.21. Legújabb bejegyzések
I found an old thread

Drag-n-drop loss in custom theme?

seems to be the same problem.

Anyone solved that issue?
thumbnail
henk huisman, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column (Válasz)

New Member Bejegyzések: 11 Csatlakozás dátuma: 2010.11.21. Legújabb bejegyzések
I think I solved the problem.

It had to do with permissions on the production server.
As I deployed my war file of the custom theme by uploading it to de deploy directory, the owner of the custom theme file became root.
Also in the temp directories some of the temp css files were owned by root. I do not know what they are for, but they actually matter.

What did help was activating the portal-developer.properties in the setenv script
Installing and intensively using the web developer plugin of Chrome
Not giving up
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
I was having similar problems with OS permissions. I'm now uploading my portlets from Liferay's Control Panel -> Server Administration -> Plugin installation
This way, I'll be installing plugin using liferay's account.
Yan Naing Oo, módosítva 11 év-val korábban

RE: Page layout in custom theme stuck to 1 column

Regular Member Bejegyzések: 179 Csatlakozás dátuma: 2011.02.17. Legújabb bejegyzések
Hi henk,

how did you solved this portlet stuck in the custom layout creation on liferay. I used CE v6.0.6 enviroment.
please let me know emoticon

thanks