Re: [Product-Developers] Configuring content-type specific portlets through GenericSetup?

2011-02-27 Thread Mikel Larreategi
2011/2/28 Andreas Jung li...@zopyx.com:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 The Types Plone control panel allows to configure content-type specific
 portlets through-the-web. Is it possible to perform the same
 configuration through GenericSetup or is it necessary to implement
 this on the conten-type level using Python?


You can configure it using GS, you have to add an 'assignment' tag in
the portlets.xml file:


   portlet
 addview=bilbaokirolak.theme.portlets.InstalacionesMenu
 title=Menu de instalaciones
 description=
 i18n:attributes=title; description
   /


 assignment name=instalaciones-menu category=content_type
key=Polideportivo manager=plone.leftcolumn
type=bilbaokirolak.theme.portlets.InstalacionesMenu/


The key point here are the category=content_type,
key=Polideportivo (the portal_type of the type you want to assign
the portlet) and type=bilbaokirolak.theme.portlets.InstalacionesMenu
the name of the portlet.



Best,


Mikel

-- 
Mikel Larreategi
mlarreat...@codesyntax.com

CodeSyntax
Azitaingo Industrialdea 3 K
E-20600 Eibar
Tel: (+34) 943 82 17 80
___
Product-Developers mailing list
Product-Developers@lists.plone.org
https://lists.plone.org/mailman/listinfo/product-developers


Re: [Product-Developers] Configuring content-type specific portlets through GenericSetup?

2011-02-27 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mikel Larreategi wrote:

 
 The key point here are the category=content_type,
 key=Polideportivo (the portal_type of the type you want to assign
 the portlet) and type=bilbaokirolak.theme.portlets.InstalacionesMenu
 the name of the portlet.

Stupid me - I actually had this in my portlets.xml but with a misspelled
portal_type :-

Andreas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJNa1MqAAoJEADcfz7u4AZjSewLugJOTslNfx++3skiPfmy43lP
YeDlfSwbcaPJgdVKhTwlWqRUtVALidQJCWL0aUdb+lRjMxqMv5jI5BIuNTpAWxRx
fK80XLREMlf06VEojgqT7hT+4Wyc+0lEoQSCRasHd8QtmX+/CFh7lp0V8jL6ccwV
kooLIzCmXKtXoa/na7u1rW49K/3Go1hsWkFomBep3jB1Smgt5A5WdazqzmyZ1Ll1
reKzEGjyUt1LhOo3ymV5TTTLRe4VmlqrOryoNjVeNK8xkWo6Ycyz7ITxwusZwEee
6oAJsqyV+U72Bt2K8qERWh8cexybudLAslTXst6//IsJdZyhSkuVyo/NNSmPvtkD
A5Bo7KypiZXQGgYVuGI7iXriUWmAekRl6bIsLtxI3KAYm1wqG21tm/UJmteBD+5e
09ucM4sc3TJUiTXD6xIX3/yhpGTgUGhZDumm/WGv6UlB4ZqsMs226dJ6m+K+VUXG
CzSSqrvn2x2gWYqiHORViWRy3kXLUno=
=y/es
-END PGP SIGNATURE-
attachment: lists.vcf___
Product-Developers mailing list
Product-Developers@lists.plone.org
https://lists.plone.org/mailman/listinfo/product-developers