Hi,
In fact i'm not sure this is the problem as when no overriding of the
application is done, theme (with its css) is ok.
I'm not excatly sure what's happening when redefining it, but the most
visible side is that custom css is not taken into account anymore.
Is there a way to implement a merge of the application so that it's not
deleted when wanting to add new elements like
<view id="/mypopup.xhtml">
<perspective>default/popup</perspective>
</view>
Thanks,
anahide.
Jean-Marc Orliaguet a écrit :
Anahide Tchertchian wrote:
Hi,
I need to overload the theme application to define new mappings
between views and themes.
The default application gets overriden by my theme contrib with:
<extension target="org.nuxeo.theme.services.ThemeService"
point="applications">
<application root="/nuxeo">
<negotiation>
<strategy>nuxeo5</strategy>
<default-engine>default</default-engine>
<default-theme>default/default</default-theme>
<default-perspective>default</default-perspective>
</negotiation>
<resource-caching>
<lifetime>36000</lifetime>
</resource-caching>
<view id="/create_relation_search_document_popup.xhtml">
<theme>default/popup</theme>
</view>
<view id="/user_dashboard.xhtml">
<theme>default/user_dashboard</theme>
</view>
<view id="/view_calendar.xhtml">
<perspective>view_calendar</perspective>
</view>
<view id="/print.xhtml">
<perspective>print</perspective>
</view>
<!-- specifics -->
<view id="/mypopup.xhtml">
<perspective>default/popup</perspective>
</view>
</application>
</extension>
The problem is that css defined in my custom theme are not found by
the app. What am I doing wrong? Is there a better way to define new
views?
Thanks,
Hi,
the css resource need to be registered as a contribution too:
for instance for a view:
<view name="my-view">
<format-type>widget</format-type>
<class>org.nuxeo.theme.jsf.views.JSFView</class>
<template>incl/my-view.xhtml</template>
<resource>my-style.css</resource>
</view>
you will need a:
<resource name="my-style.css">
<path>css/file-my-style.css</path>
</resource>
where 'path' is the physical path of the resource.
'my-style.css' is then just an identifier (the .css extension is
important though)
/JM
--
Anahide Tchertchian, Nuxeo
Mail: [EMAIL PROTECTED] - Tel: +33 (0)1 40 33 79 87
http://www.nuxeo.com - http://www.nuxeo.org
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm