The theme editor from Chamlers is now integrated within Nuxeo 5.5 and it works with the JSF/Seam UI.
It seems templates define only layout of the whole application - and more specifically, the Document Management section. There seems not to be nested templates.
The editor basically is a graphical tool for editing the theme xml file:
These are the steps that I have found working for modifying the layout.
I downloaded the theme-galaxy.xml from the Theme Editor. This is the default theme.
I renamed it to theme-mytheme.xml and put it in the the resources/themes in the contribution project. There is the OSGI-INF/theme-contrib.xml as well where we specify:
First, I changed
as well as all references to "galaxy" in theme-contrib.xml.
As a result after deployment:
- default theme was indeed changed to my_theme
- layout was broken as galaxy.css was not included. How do we point to the proper css?
So I returned "galaxy" as a name and it overrode the default galaxy theme. The css was included and layout was fine.
Then I edited the theme-mytheme.xml adding the following (the second footer):
Then in the same file:
This results in:
"section frame" is output as:
"cell frame" is output as:
inside the section frame table.
As for the "tabs" - we add in theme-contrib.xml:
This effectively outputs the logo after the footer.
What are the "perspectives"?
Types seem to be:
- "generic fragment": predefined nuxeo fragments like "nuxeo5 clip board" or "nuxeo5 breadcrumbs". What are all possible fragments? (See here: http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20DM-5.3.2/viewComponent/org.nuxeo.theme.fragmentsa and http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20DM-5.3.2/viewContribution/org.nuxeo.theme.nuxeo.default--views)
- "region fragment": What is this? For the corresponding fragment we have <view>facelet region</view>. What does it mean? Where does it say what content to include?