Foren
How can i add Page with a default portlet
Nitesh Sahay, geändert vor 12 Jahren.
How can i add Page with a default portlet
Junior Member Beiträge: 58 Beitrittsdatum: 28.11.11 Neueste 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
What can i do for this? Kindly reply...ASAP
Ram Manusani, geändert vor 12 Jahren.
RE: How can i add Page with a default portlet
Regular Member Beiträge: 124 Beitrittsdatum: 27.10.11 Neueste 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
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, geändert vor 12 Jahren.
RE: How can i add Page with a default portlet
Regular Member Beiträge: 124 Beitrittsdatum: 27.10.11 Neueste Beiträge
By the way replace the portlet_id with your portletId.. I mean replace the 71_Instance_MAIN to your portlet Id
Nitesh Sahay, geändert vor 12 Jahren.
RE: How can i add Page with a default portlet
Junior Member Beiträge: 58 Beitrittsdatum: 28.11.11 Neueste Beiträge
Thank you ram it works... but i want to do it through java code...how can i do it?
Arcko Duan, geändert vor 12 Jahren.
RE: How can i add Page with a default portlet
Regular Member Beiträge: 213 Beitrittsdatum: 15.10.07 Neueste Beiträge
Page template