The Joy of Cooking...with XDV
Someday when I'm not caught between back to back meetings I'll write a more pleasant introduction to this material, but in the meantime! Here are the slides from our presentation.
At the sprint Tyler and I put together a theme based on Halcyon, a free HTML template by Spyka. Here's a zip file with our rules.xml, template.html, and our ploneCustom.css*, etc. (during the sprint we used styles.css instead, placed it in the portal_skins/custom folder, and registered it in the portal_css registry).
Lastly, the rules.xml file from our talk today looked like:
<rules xmlns="http://namespaces.plone.org/xdv"> <!-- title --> <replace content='/html/head/title' theme='/html/head/title' /> <!-- Base tag --> <replace theme="/html/head/base" content="/html/head/base" /> <prepend theme="/html/head" content="/html/head/link | /html/head/style" /> <prepend theme="/html/head" content="/html/head/script" /> <prepend content="/html/body/@class" theme="/html/body" /> <!-- examples: note the syntax but don't worry about the details yet <copy content='//*[@id="where-it's-coming-from"]' theme='//*[@id="where-it's-going-to"]' /> --> <copy content='//*[@id="portal-column-content"]' <!-- Plone body into HTML footer --> theme='//*[@id="footer"]' /> <copy content='//*[@id="portal-logo"]' <!-- Plone logo into HTML logo --> theme='//*[@id="logo"]' /> </rules>