Ferdinand Soethe wrote:
This is untested, but would be where I would start experimenting and I'm pretty sure is close to correct (maybe even correct ;-).Thanks Ross, that was exactly what I was looking for. I just didn't know where to intercept. Will give it a try right away ... OK. I put this <!-- php Pilelines --> <!--pipeline that "marries" the docs in the root dir with the skin to produce html--> <map:match pattern="*.php"> <map:aggregate element="site"> <map:part src="cocoon:/skinconf.xml"/> <map:part src="cocoon:/build-info"/> <map:part src="cocoon:/tab-{1}.html"/> <map:part src="cocoon:/menu-{1}.html"/> <map:part src="cocoon:/body-{1}.html"/> </map:aggregate><map:call resource="skinit"><map:parameter name="type" value="site2xhtml"/> <map:parameter name="path" value="{1}.html"/> </map:call></map:match> <!--pipeline that "marries" the docs in all other dirs then root with the skin to produce html--><map:match pattern="**/*.php"> <map:aggregate element="site"> <map:part src="cocoon:/skinconf.xml"/> <map:part src="cocoon:/build-info"/> <map:part src="cocoon:/{1}/tab-{2}.html"/> <map:part src="cocoon:/{1}/menu-{2}.html"/> <map:part src="cocoon:/{1}/body-{2}.html"/> </map:aggregate> <map:call resource="skinit"> <map:parameter name="type" value="site2xhtml"/> <map:parameter name="path" value="{1}.html"/> </map:call> </map:match> into my custom sitemap and copied the skinit-ressource into it as well (because Forrest complained). Then I entered a href of abc.php into my sitemap and placed the html-document abc.html into xdocs.
Try requesting "body-abc.html". What do you get?
However trying that menu-item I only received this rather unspecific error message: Message: null Description: No details available. Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet Request URI anmeldungPHP.php cause null request-uri /anmeldungPHP.php Any ideas?
What is anmeldunPHP.php? It appears to have nothing to do with your request for "abc.php", however, Cocoon is requesting it, any idea why?
Ross
