Re: Seite in Plone von der Navigation auschließen

Martin Stadler <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Am 20.08.2009 um 12:26 schrieb Nico Grubert:

>> Ich sehe grad, dass ich diese Eigenschaften in meiner Renderer- 
>> Klasse habe. Keine Ahnung, warum darin in besagtem Post keine Rede  
>> ist. Merkwürdig...
>
>> class MyRenderer(Renderer):
>>     _template = ViewPageTemplateFile('navigation.pt')
>>     recurse = ViewPageTemplateFile('navigation_recurse.pt')
>>     @memoize
>>     def getMetaTypesNotToList(self):
>>         context = self.context
>>         portal_properties = getToolByName(context,  
>> 'portal_properties')
>>         navtree_properties = getattr(portal_properties,  
>> 'navtree_properties')
>>         return list(navtree_properties.metaTypesNotToList)
>
> Ah okay, ich dachte, diese Methoden werden von irgendwoher geerbt.
> Perfekt. Klappt wunderbar. Danke!

Ich hab das mal in einem kleinen Tutorial zusammengefasst:
http://siarp.de/node/201

Wäre eigentlich was für ein PLIP oder? Zumindest so, dass man  
konfigurieren kann, wie man es haben will.

Martin



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.