forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ferdinand Soethe <ferdin...@apache.org>
Subject Re: Quick way to skin php-files?
Date Tue, 29 Nov 2005 14:11:35 GMT
> 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.

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?

--
Ferdinand Soethe


Mime
View raw message