-
Bug
-
Resolution: Unresolved
-
Major
-
4.6.0
-
None
-
1 - Middle term
-
2 - Normal
In my skin, I have to override the pipeline and add the related transformers in order to acced to the fieldsets of my user content type. It would be cool to have it witghout override the pipeline of the plugin :
<map:match pattern="org.ametys.plugin.agents.Content.agent.html"> <map:act type="get-ctype-infos"> <map:parameter name="viewName" value="{request-param:viewName}"/> <map:parameter name="fallbackViewName" value="{request-param:fallbackViewName}"/> <map:aggregate element="view"> <map:part src="cocoon://_plugins/web/content"/> <map:part src="cocoon://_plugins/web/content-pages"/> <!-- Pour ajouter cette ligne --> <map:part src="cocoon://content-type-model"/> </map:aggregate> <map:transform type="i18n"> <map:parameter name="locale" value="{request-attr:renderingLanguage}"/> <map:parameter name="plugin" value="{request-attr:pluginName}"/> </map:transform> <map:transform src="content-view://agent/view-{viewName}/html.xsl"> <map:parameter name="pluginName" value="{pluginName}"/> </map:transform> <map:transform type="docbook-enhancement"/> <map:transform type="i18n"> <map:parameter name="locale" value="{request-attr:renderingLanguage}"/> <map:parameter name="plugin" value="{pluginName}"/> </map:transform> <map:transform type="processing-instruction-transform"/> <map:serialize type="xhtml"/> </map:act> </map:match> <!-- Pipeline par défaut du plugin web mais qui ne saxe pas le modèle --> <map:match pattern="org.ametys.plugin.agents.Content.*.*"> <map:redirect-to uri="cocoon://_plugins/web/content-type.{1}.{2}?pluginName={request-attr:pluginName}"/> </map:match>
+ added into components :
<!-- Nécessaires car on y fait référence ci-dessous --> <map:actions> <map:action name="get-ctype-infos" src="org.ametys.cms.content.GetContentTypeInformationAction"/> </map:actions> <map:transformers> <map:transformer name="docbook-enhancement" src="org.ametys.cms.transformation.docbook.DocbookEnhancementTransformer"/> <map:transformer name="processing-instruction-transform" src="org.ametys.cms.transformation.ProcessingInstructionTransformer"/> </map:transformers>