Philippe BODDAERT wrote: > Hello, > I'm working on a portal application based on Nuxeo WebEngine. > I'm trying to use NXTheme. > I installed the NXTheme application as it is explained in the previous topic. > The bundle NxTheme is deployed without errors. > > I have some questions about How to use it : > 1 - I tried to modify the webengine theme (located in web-engine-theme.xml) > but I don't see any changes at runtime. > What am I doing wrong (see the PS) ? > 2 - How can I access the graphical theme editor in a page? Which url > parameters must be used ? > > Sincerely, >
Hi, you need to replace the <@extends src="base.ftl"> tags with <@theme> in your templates <@extends src="base.ftl"> <@block name="content"> ... </@block> </@extends> becomes <@theme> <@block name="content"> ... </@block> </@theme> to enter the editor SHIFT+ALT+t or ALT + _ Note that the code is being ported to jax-rs Regards /JM > PS: the diff to apply to webengine-theme.xml > diff -r 5dbc9444fe3c > nuxeo-theme-webengine/src/main/resources/nxthemes/webengine/fm/themes/webengine-theme.xml > --- > a/nuxeo-theme-webengine/src/main/resources/nxthemes/webengine/fm/themes/webengine-theme.xml > Sun Nov 02 13:16:35 2008 +0100 > +++ > b/nuxeo-theme-webengine/src/main/resources/nxthemes/webengine/fm/themes/webengine-theme.xml > Mon Nov 03 16:02:58 2008 +0100 > @@ -16,6 +16,7 @@ > </section> > <section> > <cell> > + <fragment type="region fragment"/> > <fragment type="region fragment"/> > </cell> > </section> > @@ -54,6 +55,11 @@ > <properties element="page[1]/section[2]/cell[1]/fragment[1]"> > <name>footer</name> > <defaultBody><p>&copy; 2000-2008 <a > href="http://www.nuxeo.com/en/">Nuxeo</a>.</p></defaultBody> > + <defaultSrc/> > + </properties> > + <properties element="page[1]/section[2]/cell[2]/fragment[1]"> > + <name>test</name> > + <defaultBody>test integration</defaultBody> > <defaultSrc/> > </properties> > <formats> > @@ -121,6 +127,12 @@ > <widget element="page[1]/section[2]/cell[1]/fragment[1]"> > <view>block region</view> > </widget> > + <widget element="page[1]/section[2]/cell[2]"> > + <view>cell frame</view> > + </widget> > + <widget element="page[1]/section[2]/cell[2]/fragment[1]"> > + <view>block region</view> > + </widget> > <style element="page[1]/section[1]/cell[2]"/> > <style element="page[1]/section[2]"/> > <style element="page[1]/section[2]/cell[1]"/> > > > Philippe BODDAERT > LEROY MERLIN > > _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
