Re: Portlets bei Installation konfigurieren?

Martin Stadler <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Am 22.01.2009 um 17:43 schrieb Hartmut Goebel:

> Hallo,
>
> mit .zcml-Dateien kann man ja bei der Installation sehr schön gleich
> diverse Setting einstellen. Nun suche ich einen Weg, die Portles zu
> konfigurieren:
> - ein eigenes Class-Portlet hinzufügen
> - andere Portlets herausnehmen
>
> Ich habe den gesammten Plone-Source durchsucht, aber keinen  
> brauchbaren
> hinweise bekommen.
>
> Plone 3.1
>

Das kannst du über ein Generic-Setup-Profil machen. Eine Datei namens  
portlets.xml in den Ordner profiles legen. Die sieht dann z.B. so aus:


<?xml version="1.0"?>
<portlets>

<!-- Assign portlets -->
<assignment
     type="pirates.Navigation"
     manager="plone.leftcolumn"
     category="context"
     key="/"
     name="pirates.navigation"
     >
</assignment>

<!-- Remove standard portlets -->
<assignment
     manager="plone.leftcolumn"
     category="context"
     key="/"
     type="portlets.Navigation"
     name="navigation"
     remove=""
     />
<assignment
     manager="plone.leftcolumn"
     category="context"
     key="/"
     type="portlets.Login"
     name="login"
     remove=""
     />
</portlets>


Gruß,
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.