Rene,
You can use the overriding mechanism [1] to override pipelines in
/actions/sitemap.xmap. You can then replace the 'documents' or 'assets'
ActionLists with your own.
Dennis
[1] http://hippocms.org/display/CMS/Overriding+core+CMS+code
Rene van Lier wrote:
Hi Dennis,
For now, just a resourceType 'test':
<ActionList resourceType="testCollection">
<ActionGroup name="actions.folderactions.label" i18n:attr="name">
<Icon>folder_open</Icon>
<Action>
<ID>test_makeCollection</ID>
<Label><i18n:text>actions.folder.new</i18n:text></Label>
<Icon>folder_new</Icon>
<Param>
<ID>name</ID>
<Label><i18n:text>actions.folder.new.name</i18n:text></Label>
<Datatype>string</Datatype>
</Param>
</Action>
</ActionGroup>
</ActionList>
If we use 'documents' or 'assets' we automatically inherit all the other
actions, which is not what we want...
-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Dennis Dam
Verzonden: dinsdag 2 oktober 2007 12:27
Aan: Hippo CMS development public mailinglist
Onderwerp: Re: [HippoCMS-dev] adding a resourceType
Hi Rene,
yes, actions.xml is overridable from extensions. You can see this in the
/src/site/actions/sitemap.xmap:
<!-- actions.xml overridable in extensions folder -->
<map:match pattern="actions.xml">
<map:select type="resource-exists">
<map:when
test="extensions://actions/resources/xml/actions.xml">
<map:generate
src="extensions://actions/resources/xml/actions.xml"/>
</map:when>
<map:otherwise>
<map:generate src="resources/xml/actions.xml"/>
</map:otherwise>
</map:select>
<map:serialize type="xml"/>
</map:match>
So you can place your custom actions.xml in <extensions
folder>/actions/resources/xml/actions.xml .
What resourceType do you want to add / what are you trying to achieve?
Can you give us some more details ?
regards,
Dennis
Rene van Lier wrote:
Hi all,
Is there a way to add a resourceType using extensions? We would like
to
use actions.xml but not be limited to the default resourceTypes.
Thanks,
Rene.
Ing. R. van. Lier
Consultant
GSM: +31 (0)6 48 05 37 55
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig
van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien
u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te
verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
********************************************
Hippocms-dev: Hippo CMS development public mailinglist