forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <>
Subject Re: [RT] plugin infrastructure
Date Mon, 15 Nov 2004 11:59:35 GMT
Clay Leeds wrote:
> On Nov 14, 2004, at 6:06 AM, Ross Gardler wrote:
>> Nicola Ken Barozzi wrote:
>>> Thorsten Scherler wrote:
>>>> <snip/>
>>> ...
>>>> <forrest-template>
>>>>    <contract name="branding-trail-path"/>
>>>>    <hook name="intro">
>>>>      <contract name="grouplogo"/>
>>>>      <contract name="projectlogo"/>
>>>>      <contract name="search-input"/>
>>>>      <contract name="nav-main"/>
>>>>      <contract name="nav-main-sub"/>
>>>>      <contract name="openofficeplugin">
>>>>        <metadata name="param" value="some value"/>
>>>>      </contract>
>>>>    </hook>
>>>> </forrest-template>
>>>> That means every plugin delivers a contract that is registered in 
>>>> our contract list.
>>> Ok, but how will forrest render the open office plugin, contract?
>> What exactly is the openofficeplugin doing here? I understand the 
>> grouplogo, contractlogo etc. are pluggable renderers for various parts 
>> of the skin. What is the openofficeplugin doing? I can only see it 
>> providing content so why is this defined in the skins template, 
>> wouldn't this always just be <contract name="content"/> and forrest 
>> does the rest? I suppose I am asking why does the skin need to know 
>> the openofficeplugin is needed here?
> Is it not possible that the file includes the project 
> logo embedded in the Impress or Writer file? If so, then it would need 
> to be 'passed through' to Forrest (unless the element is somehow ignored 
> during the skinning/processing of the OOo files...)

In such a situation the content in the OOo file would be extracted by 
generating/aggregating a cocoon:// request. Forrest would figure out 
what combination of input and output plugins are needed to satisfy that 
request. I don't think the forrest-template needs to (or should) know 
about what plugin is used since it is part of the skinning step in the 
processing pipeline (see Nicola Kens RT "Forrest Processing Pipeline").


View raw message