A general note about writing extension profiles.
For all the files that are there only to *add* things to an existing
tool, you don't need to add the meta_type attribute for the
references to that tool. For example below, you only need to write:
<object name="portal_actions">
or
<object name="portal_layouts">
The meta_type is only useful if these objects were about to be
created, which they're not in an extension profile.
Florent
On 13 Jan 2006, at 18:25, [EMAIL PROTECTED] wrote:
@@ -68,3 +72,11 @@
extra_constructors = contentConstructors,
fti = fti,
).initialize(registrar)
+ profile_registry.registerProfile(
+ 'default',
+ 'CPS Blog',
+ "Blog product for CPS.",
+ 'profiles/default',
+ 'CPSBlog',
+ EXTENSION,
+ for_=ICPSSite)
Added: CPSBlog/trunk/profiles/default/actions.xml
======================================================================
========
--- (empty file)
+++ CPSBlog/trunk/profiles/default/actions.xml Fri Jan 13 18:24:40
2006
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<object name="portal_actions" meta_type="CMF Actions Tool">
+ <action-provider name="portal_actions">
+ <action title="Send a mail notification" action_id="mnotify"
+ category="document_actions"
+ condition_expr="python:object.portal_type != 'Portal'"
+ url_expr="string:$object_url/content_notify_email_form"
visible="True">
+ <permission>View</permission>
+ </action>
+ <action title="RSS feed" action_id="rss"
+ category="document_actions" condition_expr=""
+ url_expr="string:$object_url/exportrss" visible="True">
+ <permission>View</permission>
+ </action>
+ <action title="ATOM feed" action_id="atom"
+ category="document_actions" condition_expr=""
+ url_expr="string:$object_url/exportatom" visible="True">
+ <permission>View</permission>
+ </action>
+ </action-provider>
+</object>
Added: CPSBlog/trunk/profiles/default/layouts.xml
======================================================================
========
--- (empty file)
+++ CPSBlog/trunk/profiles/default/layouts.xml Fri Jan 13 18:24:40
2006
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<object name="portal_layouts" meta_type="CPS Layouts Tool">
+ <object name="blog" meta_type="CPS Layout"/>
+ <object name="blog_entry" meta_type="CPS Layout"/>
+ <object name="blog_entry_flexible" meta_type="CPS Layout"/>
+ <object name="blogaggregator" meta_type="CPS Layout"/>
+ <object name="blogaggregator_portlet" meta_type="CPS Layout"/>
+</object>
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED]
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel