Olivier Grisel wrote:
> Marco Balcon a écrit :
>   
>> Hello!    
>>
>> thanks for your response.
>>
>> I have check the documentation but I have an other doubt.    
>> If I want to make the new application, the best way is to extend the 
>> nuxeo.war application or I can add an other context with my webapp?    
>> I have this doubt because reading the "Look & Feel" documentation i see      
>>   
>>
>> <extension target="org.nuxeo.theme.services.ThemeService"
>>     point="applications">
>>     <application root="/nuxeo">
>>     ...
>>
>> so I have the doubt that I can create a new context and specify the theme 
>> for this.
>>     
>
> What do you mean by "context" ? If you want to define your own theme, just 
> make
> your custom component register a new contribution to the theme service, either
> calling it "default" to override the default theme or with a new name that is
> selected by default by a new theme negociator of your own (contributed to the
> theme service extension point as well).
>
>   

the application context used by the nuxeo webapp is /nuxeo and it is
really hardcoded everywhere, so unless you want to write a completely
new web application from scratch, you won't need to change the
'applications' extension point at all.

you can however in your application override the /nuxeo application
settings and fo example change the name of the default theme, or change
cache-control parameters, or associate themes to views, etc.

I haven't tested yet, but the override is supposed to replace existing
settings while preserving old ones that are not to be overridden, to
make it possible to easily customize or extend the default application.
That's the design idea, now the implementation may differ, but in that
case it's a bug.

/JM





_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to