You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Nunez Steve <st...@yahoo.com> on 2007/07/21 10:27:07 UTC
Declaring New Resource Types in publication.xml
Lenya Users,
The tutorial for creating a new resource type:
http://lenya.apache.org/docs/2_0_x/tutorials/resourcetype/part1.html
states that the new type must be declared in
$MODULE_HOME/config/cocoon-xconf
Whilst looking at the $PUB_HOME/publication.xml file
(for the default publication), I found the
<resource-types> section, which is referred to in the
technical documentation section:
http://lenya.apache.org/docs/2_0_x/reference/resource-types.html
It appears, but is not stated anywhere, that a new
resource type should be added to the <resource-types>
section of the publication.xml document.
Is this true?
Cheers,
- Steve
____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Declaring New Resource Types in publication.xml
Posted by Andreas Hartmann <an...@apache.org>.
Nunez Steve schrieb:
> Lenya Users,
>
> The tutorial for creating a new resource type:
>
> http://lenya.apache.org/docs/2_0_x/tutorials/resourcetype/part1.html
>
> states that the new type must be declared in
> $MODULE_HOME/config/cocoon-xconf
>
> Whilst looking at the $PUB_HOME/publication.xml file
> (for the default publication), I found the
> <resource-types> section, which is referred to in the
> technical documentation section:
>
> http://lenya.apache.org/docs/2_0_x/reference/resource-types.html
>
> It appears, but is not stated anywhere, that a new
> resource type should be added to the <resource-types>
> section of the publication.xml document.
That's only necessary if you want to assign a workflow for the
resource type:
http://lenya.apache.org/docs/2_0_x/reference/resource-types.html#Adding+the+Resource+Type+to+a+Publication
I omitted it in the tutorial for simplicity. But I guess clarity
is more important, so I added a note there too.
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org