掲示板

Configure Navigation portlet using code

thumbnail
12年前 に Nitesh Sahay によって更新されました。

Configure Navigation portlet using code

Junior Member 投稿: 58 参加年月日: 11/11/28 最新の投稿
I want to configure navigation portlet programatically by which i can set set my desire dispaly-style,text-style,font etc.
Please reply....
thumbnail
12年前 に Ram Manusani によって更新されました。

RE: Configure Navigation portlet using code

Regular Member 投稿: 124 参加年月日: 11/10/27 最新の投稿
You can always do that by setting the properties by adding the portlet to the theme or page layout using:


$velocityPortletPreferences.setValue("root-layout-type", "absolute")
$velocityPortletPreferences.setValue("bullet-style", "main")
$velocityPortletPreferences.setValue("header-type", "none")
$velocityPortletPreferences.setValue("root-layout-level", "0")
$velocityPortletPreferences.setValue("included-layouts", "all")
$velocityPortletPreferences.setValue("display-style", "[6]")
$theme.runtime("71_INSTANCE_MAIN", "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()
thumbnail
12年前 に Nitesh Sahay によって更新されました。

RE: Configure Navigation portlet using code

Junior Member 投稿: 58 参加年月日: 11/11/28 最新の投稿
Thanks for reply...it's helpful