Where are {defaults:} set in cocoon 2.2

View: New views
2 Messages — Rating Filter:   Alert me  

Where are {defaults:} set in cocoon 2.2

by Steven D. Majewski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Where are defaults set for the {defaults:} input module, now
that there is no cocoon.xconf ?

-- Steve Majewski / UVA Alderman Library


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Where are {defaults:} set in cocoon 2.2

by Dominic Mitchell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Sep 26, 2009 at 7:06 PM, Steven D. Majewski <sdm7g@...> wrote:
Where are defaults set for the {defaults:} input module, now
that there is no cocoon.xconf ?

Looking through the source code, I'd guess that you need to stuff something like this into src/main/resources/META-INF/cocoon/avalon/defaults.xml:

<components>
  <input-modules>
    <component-instance name="defaults" class="org.apache.cocoon.components.modules.input.DefaultsModule">
      <values>
        <skin>defaultSkin</skin>
        <base-url>http://localhost:8080/cocoon</base-url>
      </values>
    </component-instance>
  </input-modules>
</components>

-Dom