forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject No more @skin@ in sitemap (Re: cvs commit: xml-forrest/src/resources/conf cocoon.xconf sitemap.xmap)
Date Tue, 17 Sep 2002 06:44:31 GMT
On Mon, Sep 16, 2002 at 11:34:25PM -0000, kpiroumian@apache.org wrote:
> kpiroumian    2002/09/16 16:34:25
> 
>   Modified:    src/resources/conf cocoon.xconf sitemap.xmap
>   Log:
>   Change sitemap to use Cocoon input module for skin selection instead of Ant filter
tokens.
>   Replace RequestParamAction by RequestContextPathModule input module.
>   (WARN: Update to the latest Cocoon 2.1 - 17 Sep 2002 - is requried)

Very cool :)

A summary for lazy people: cocoon.xconf now contains:

<component-instance class="org.apache.cocoon.components.modules.input.RequestParameterModule"
name="request"/>
...
<component-instance class="org.apache.cocoon.components.modules.input.DefaultsMetaModule"
name="defaults">
  <input-module name="request"/>
  <values>
    <skin>forrest-site</skin>
    <base-url>/forrest</base-url>
  </values>
</component-instance>

Which means that in the sitemap, {defaults:skin} will be replaced by the 'skin'
request parameter's value, or if not set, the default value 'forrest-site'. So
a request to:

http://localhost:8787/forrest/index.html?skin=avalon-site

displays with the avalon skin.


--Jeff

Mime
View raw message