By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,609 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,609 IT Pros & Developers. It's quick & easy.

how to replace navigation portlet with my own template file in plone4.3

P: 5
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

Expand|Select|Wrap|Line Numbers
  1.   class navigation_address(Renderer):         
  2.               index = ViewPageTemplateFile('templates/portlet_address.pt') 
  3.  

2. I registered the portlets in overrides.zcml like
Expand|Select|Wrap|Line Numbers
  1.  
  2.         <plone:portletRenderer
  3.           portlet="plone.app.portlets.portlets.navigation.INavigationPortlet"
  4.           class=".browser.createPictMenu.navigation_address"
  5.           />  
  6.  
Aug 23 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.