Fórum
Portlet in template and set any config-parameters
Manuel Miklo, modificado 11 Anos atrás.
Portlet in template and set any config-parameters
New Member Postagens: 20 Data de Entrada: 30/01/10 Postagens Recentes
Hello togheter
i try to add a portlet in the header of the template. This portlet has got some variavles in the config part how the href-parameter and a appId. How i could set now this
variables when i insert the portlet in the template?
I have tried follow::
In the portal_normal.vm i add folow:
The href is a String var in the init.jsp in the theme. I think that the problem would be that this is not a PortletPreferences Value. But i didnt understand the system behind exactly at the moment.
How i could setup config-vars from the config dialog when i insert the portlet on this way?
Thanks befor and help will be so nice.
:-)
Greats and regards
Manuel
i try to add a portlet in the header of the template. This portlet has got some variavles in the config part how the href-parameter and a appId. How i could set now this
variables when i insert the portlet in the template?
I have tried follow::
In the portal_normal.vm i add folow:
<div id="face-pile">
$velocityPortletPreferences.setValue("portletSetupShowBorders", "false")
$velocityPortletPreferences.setValue("href", "https://www.facebook.com/PayItForwardDay")
$theme.runtime("FacepilePortlet_INSTANCE_Wpv2GA53iloc", "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()
</div>
The href is a String var in the init.jsp in the theme. I think that the problem would be that this is not a PortletPreferences Value. But i didnt understand the system behind exactly at the moment.
How i could setup config-vars from the config dialog when i insert the portlet on this way?
Thanks befor and help will be so nice.
:-)
Greats and regards
Manuel