Tiry wrote:
Le mardi 20 mars 2007 à 18:26 +0100, Jean-Marc Orliaguet a écrit :
Thibaut Soulcié wrote:
Hi list, hi Jean-Marc,
I'm working on a project needing a print.css. So the usual solution
since CPSSkins will be to make a 'print' page in the theme and display
the current view with this page from cliking on a "print this page" link.
Would you have an idea/solution to include in the <head> a real <link
rel="stylesheet" type="text/css" media="print" href="print.css" />
without having to make a link + a page in the future ?
regards,
tibo
Hi,
the <head> in theme-view.xhtml needs to be cleaned up.
currently there is:
- a slot for a base url
- a slot for a bookmark url
in your example there is also a need for:
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
The current solution using ui:insert is not optimal ... I was thinking
of replacing all that with a JSF component that reads registered
contributions.
<nxthemes:head />
Contributions should be registrable by theme, page, ... and be written
in java to access the request, the context, ....
When nxthemes and nuxeo will be sharing the same seam context,
contributions could be simply done by some xml containing an EL
expression, no?
Tiry
In that particular case EL is a can of worms. The renderer has no way of
knowing which namespaces that will be used (nxh, ...) since the renderer
will just insert the content as it is and let JSF do the rest, which
means that you'll have to declare the namespaces somewhere else, e.g. in
a widget (thus creating a dependency on a visual element), or in
theme-view.xml directly (!)
/JM
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm