Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Nitesh Kr Sahay
How can i add Page with a default portlet
17. Februar 2012 09:51
Antwort

Nitesh Kr Sahay

Rang: Junior Member

Nachrichten: 58

Eintrittsdatum: 28. November 2011

Neue Beiträge

Can any one suggest ....how can i add page as an admin user but that page layout has already a portlet in it....
What can i do for this? Kindly reply...ASAP
Ram Manusani
RE: How can i add Page with a default portlet
17. Februar 2012 09:55
Antwort

Ram Manusani

Rang: Regular Member

Nachrichten: 124

Eintrittsdatum: 27. Oktober 2011

Neue Beiträge

You can add a portlet to a custom page layout by using the following syntax in your .tpl file

Add this code in the <div> section of the column where you want to see the portlet.


$velocityPortletPreferences.setValue("portlet-setup-show-borders", "true")
$theme.runtime("71_INSTANCE_MAIN", "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()

This should solve your purpose
Ram Manusani
RE: How can i add Page with a default portlet
17. Februar 2012 09:56
Antwort

Ram Manusani

Rang: Regular Member

Nachrichten: 124

Eintrittsdatum: 27. Oktober 2011

Neue Beiträge

By the way replace the portlet_id with your portletId.. I mean replace the 71_Instance_MAIN to your portlet Id
Arcko Duan
RE: How can i add Page with a default portlet
18. Februar 2012 06:07
Antwort

Arcko Duan

Rang: Regular Member

Nachrichten: 202

Eintrittsdatum: 15. Oktober 2007

Neue Beiträge

Page template
Nitesh Kr Sahay
RE: How can i add Page with a default portlet
20. Februar 2012 02:43
Antwort

Nitesh Kr Sahay

Rang: Junior Member

Nachrichten: 58

Eintrittsdatum: 28. November 2011

Neue Beiträge

Thank you ram it works... but i want to do it through java code...how can i do it?