Narcis Paslaru wrote:
Jean-Marc Orliaguet wrote:
Narcis Paslaru wrote:
Hi all,
We have a 2 domains nuxeo-based application.
We need to create two different themes and use them for each domain;
every domain with it's theme.
We have created a second theme, but we don't know how to make the
association between domains and themes.
Is this possible programatically or via an extention contribution ?
Thank you,
Narcis Paslaru
Hi,
You can use the local theme option I think ("Themes" tab).
otherwise you'll have to write a negotiation scheme that parses the
URL and see what it the path starts with (/default/, ...). There are
no references to nuxeo specific objects (such as domains, etc) in
nxthemes.
regards
/JM
Thanks for your answer,
I've enabled the theme tab, and choose 2 different themes for each
domain.
The problem is with the content of each domain.
It would be great if all children would inherit the parent's theme.
Right now all documents take the default theme, unless modify in theme
tab.
Is this possible ?
Thanks again,
Narcis Paslaru
the local theme is bound to the nearest "superspace" (domain, workspace,
...) located above in the hierarchy. Because of that the local theme
inheritence works across plain folders since they are not considered as
superspaces, but if you have "domain" > "workspaces" > "some space" it
won't work.
it would be technically possible to skip superspaces that have no local
theme information, but in term of performance I'm not sure that it is
the best solution.
I would instead register a set of rules in an nxruntime extension that
map domain names to themes and use a negotiation scheme to do the
lookup, that would be much faster to compute.
/JM
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm