留言板

Programmatically adding static portlets to a certain layout

thumbnail
Yves LeGrand,修改在12 年前。

Programmatically adding static portlets to a certain layout

Regular Member 帖子: 156 加入日期: 09-11-18 最近的帖子
Hi again,

at the moment i am trying to implement a layout which contains static portlets which are mapped to a this layout.
Within the portal-ext.properties it can be done with a mapping to a certain friendly url. Something like

layout.static.portlets.start.column-1[user][/pagewithstaticportlets]=mystaticportlet

How can i do this programmatically?
p.setStatic(true);
...?

Thanks,
Yves