I'm trying to extract the attribute of a tag in my Plone site and make it the contents of a tag in my theme.
The specific usecase:
I'd like to extract the plone site title from #portal-logo, the markup in the Plone site looks like this:
<a id="portal-logo" title="Cool Plone Site" accesskey="1" href="http://mysite">
<img src="http://mysite/logo.png"
alt="Cool Plone Site"
title="Cool Plone Site"
height="56" width="215">
</a>
The title should be inserted between h1 tags in the header tag of my template
<header>
<h1>Cool Plone Site</h1>
</header>
This solved my problem:
The key here is theme-children. I'd love to be able to use css:select to grab the title attribute, but this works and is still acceptably elegant :)