Author: jmorliaguet Date: Sun Oct 30 19:00:14 2005 New Revision: 28828 Modified: z3lab/cpsskins/branches/jmo-perspectives/engines/contentauthor/content_author.pt z3lab/cpsskins/branches/jmo-perspectives/engines/layoutdesigner/layout_designer.pt z3lab/cpsskins/branches/jmo-perspectives/engines/pagedesigner/page_designer.pt Log:
- we store the engine's name in a meta data field so we can use it in javascript Modified: z3lab/cpsskins/branches/jmo-perspectives/engines/contentauthor/content_author.pt ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/engines/contentauthor/content_author.pt (original) +++ z3lab/cpsskins/branches/jmo-perspectives/engines/contentauthor/content_author.pt Sun Oct 30 19:00:14 2005 @@ -1,9 +1,11 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" - tal:define="tmutil context/@@getThemeManager; + tal:define="engine string:content-author; + tmutil context/@@getThemeManager; current_theme python:tmutil.getThemeInContext(context); effective_page python:tmutil.getEffectivePage(context, request)"> <head> + <meta name="engine" tal:attributes="content engine" /> <link rel="Stylesheet" type="text/css" href="/++skin++cpsskins/@@/++resource++content_author.css" /> <link rel="Stylesheet" type="text/css" @@ -34,9 +36,7 @@ <div id="editSpace"> <metal:block use-macro="context/@@authoring_macros/themetabs" /> <metal:block use-macro="context/@@authoring_macros/pagetabs" /> - <tal:block content="structure python: view.draw( - location=context, - engine='content-author')" /> + <tal:block content="structure python: view.draw(location=context)"/> </div> <metal:block use-macro="context/@@authoring_macros/authoring_footer" /> Modified: z3lab/cpsskins/branches/jmo-perspectives/engines/layoutdesigner/layout_designer.pt ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/engines/layoutdesigner/layout_designer.pt (original) +++ z3lab/cpsskins/branches/jmo-perspectives/engines/layoutdesigner/layout_designer.pt Sun Oct 30 19:00:14 2005 @@ -1,9 +1,11 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" - tal:define="tmutil context/@@getThemeManager; + tal:define="engine string:layout-designer; + tmutil context/@@getThemeManager; current_theme python:tmutil.getThemeInContext(context); effective_page python:tmutil.getEffectivePage(context, request)"> <head> + <meta name="engine" tal:attributes="content engine" /> <link rel="Stylesheet" type="text/css" href="/++skin++cpsskins/@@/++resource++layout_designer.css" /> <link rel="Stylesheet" type="text/css" @@ -35,7 +37,7 @@ <div id="editSpace"> <metal:block use-macro="context/@@authoring_macros/themetabs" /> <metal:block use-macro="context/@@authoring_macros/pagetabs" /> - <tal:block content="structure python: view.draw(engine='layout-designer')" /> + <tal:block content="structure python: view.draw(engine=engine)" /> </div> <metal:block use-macro="context/@@authoring_macros/authoring_footer" /> Modified: z3lab/cpsskins/branches/jmo-perspectives/engines/pagedesigner/page_designer.pt ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/engines/pagedesigner/page_designer.pt (original) +++ z3lab/cpsskins/branches/jmo-perspectives/engines/pagedesigner/page_designer.pt Sun Oct 30 19:00:14 2005 @@ -1,9 +1,11 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" - tal:define="tmutil context/@@getThemeManager; + tal:define="engine string:page-designer; + tmutil context/@@getThemeManager; current_theme python:tmutil.getThemeInContext(context); effective_page python:tmutil.getEffectivePage(context, request)"> <head> + <meta name="engine" tal:attributes="content engine" /> <link rel="Stylesheet" type="text/css" href="/++skin++cpsskins/@@/++resource++page_designer.css" /> <link rel="Stylesheet" type="text/css" @@ -35,7 +37,7 @@ <div id="editSpace"> <metal:block use-macro="context/@@authoring_macros/themetabs" /> <metal:block use-macro="context/@@authoring_macros/pagetabs" /> - <tal:block content="structure python: view.draw(engine='page-designer')" /> + <tal:block content="structure python: view.draw(engine=engine)" /> </div> <metal:block use-macro="context/@@authoring_macros/authoring_footer" /> -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins