Thibaut Soulcié wrote:
Hi,
Presets are now stored inside palettes (which are simply collection
of presets).
create a palette instead:
<extension target="org.nuxeo.theme.services.ThemeService"
point="presets">
<palette name="default fonts"
src="nxthemes/demo/palettes/fonts.properties" category="font" />
</extension>
ok
where would it be wise to put the nuxeo-default palettes according to
you ?
i was thinking of ...webapp/resources/WEB-INF/palettes, what do you
think?
webapp/resources/themes/palettes
I would say
WEB-INF is somehow reserved for J2EE web files I guess
with 'nxthemes/demo/palettes/fonts.properties':
arial=12px Arial
verdana=12px Verdana
georgia=13px Georgia
ok
(by the way, can i put spaces in the name, before the = ? or only .
and - ?)
according to the spec you can, but they must be escaped:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html
I haven't tested yet though ...
- the "src" parameter can be a URL too (e.g.
http://server/palettes/fonts.properties)
- the "name" parameter is added to the preset name
- the "category" parameter is used in the style editor to make it
possible to select items among 'font', 'color', 'image', categories.
this will offer the possibility to manage presets inside the theme
editor in the same way as themes are managed allowed importing /
exporting / reloading
how do i call the preset arial of default fonts in nxthemes-setup ?
<font preset="..." /> ?
<font preset="preset name (palette name)" />
when the server starts the log file will read
that i can't get!
that was an example (unless you have org.nuxeo.theme.demo installed you
won't get access to the palettes installed in it :-) )
see
http://svn.nuxeo.org/nuxeo/org.nuxeo.theme/trunk/demo/resources/nxthemes/demo/palettes
http://svn.nuxeo.org/nuxeo/org.nuxeo.theme/trunk/demo/OSGI-INF/nxthemes-demo-contrib.xml
i can't get either the presetted values through the style picker in
the editor because when i click on the icon i get :
15:48:06,511 ERROR [[Faces Servlet]] Servlet.service() for servlet
Faces Servlet threw exception
java.lang.NullPointerException
at
org.nuxeo.theme.types.TypeRegistry.getTypes(TypeRegistry.java:69)
I know. it seems to be related to Ajax4Jsf, I don't get the error in
org.nuxeo.theme.demo. I'll have to see what makes the difference in the
setup.
By the way photoshop palettes are now supported
best
/JM
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm