Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can anyone tell how to replace a navigation portlet with my own template. I did like this

1. I created one new class for portlet in my .py file and its look like below

[CODE] class navigation_address(Renderer):
index = ViewPageTemplateFile('templates/portlet_address.pt')
[/CODE]


2. I registered the portlets in overrides.zcml like
[CODE]

<plone:portletrenderer xmlns:plone="#unknown">
portlet="plone.app.portlets.portlets.navigation.INavigationPortlet"
class=".browser.createPictMenu.navigation_address"
/>
[/CODE]
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900