Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Trollbahrt Wunderlich
Static Portlet Navigation (RESOLVED)
November 20, 2007 5:36 AM
Answer

Trollbahrt Wunderlich

Rank: Junior Member

Posts: 70

Join Date: June 11, 2007

Recent Posts

Hi all,

I try to set the navigationportlet as a static portlet so all users must see it. I set in portal-ext.properties

layout.static.portlets.start.column-1=71


but it didnt work. It wasnt shown! Also in the catalina.out I cant see any errors-logs! The other portlets (Enterprise Admin, etc.) works fine.

Any idea what could be wrong?

Best
Troll
Reinier de Graaf
RE: Static Portlet Navigation
November 13, 2007 7:51 AM
Answer

Reinier de Graaf

Rank: New Member

Posts: 15

Join Date: October 25, 2007

Recent Posts

I found this, but I have not tested it myself:
http://wiki.liferay.com/index.php/Add_runtime_portlets_to_a_layout

You can also look at this thread, where portlets are defined in the theme templates:
How to include portlet or content to my theme's layout?

Please let me know what your approach is to solve this. The latter solution does not seem correct.

Regards,

Reinier
Jorge Ferrer
RE: Static Portlet Navigation
November 18, 2007 3:50 PM
Answer

Jorge Ferrer

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2768

Join Date: August 31, 2006

Recent Posts

Hi Trollbahrt,

That should work. If not, either it's not reading the portal(-ext).properties file correctly or it's a bug. Could you double check the former and otherwise let me now along with the version that you are using?
Trollbahrt Wunderlich
RE: Static Portlet Navigation
November 20, 2007 5:33 AM
Answer

Trollbahrt Wunderlich

Rank: Junior Member

Posts: 70

Join Date: June 11, 2007

Recent Posts

Hi Jorge,

we solved it! The answer to this problem is, to change our code in portal-ext.properties!

We have to change

layout.static.portlets.start.column-1=71


to

layout.static.portlets.start.column-1=71_INSTANCE_abak


thats all emoticon

I dont understand exactly what there happens, but it works emoticon

Best
Troll
Jorge Ferrer
RE: Static Portlet Navigation
November 20, 2007 11:55 AM
Answer

Jorge Ferrer

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2768

Join Date: August 31, 2006

Recent Posts

Hi Trollbahrt,

The reason why that's necessary is because your portlet is instanceable. And to add a static portlet you always need to refer to an instance. For regular portlets its the portlet name itself, but for instanceable portlets it should be a string of the form:

{portlet_name}_INSTANCE_{four_random_chars}
Trollbahrt Wunderlich
RE: Static Portlet Navigation
December 5, 2007 7:01 AM
Answer

Trollbahrt Wunderlich

Rank: Junior Member

Posts: 70

Join Date: June 11, 2007

Recent Posts

Hi Jorge,

thanks for your explanation! Step by step we dive deeper and deeper into the liferay system and understand what happens emoticon

Best
Troll