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
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm