I'm using a diazo (currently plone.app.theming 1.0b1-r48205) with Plone 4.1. I want to use exactly Plone's html for the search widget except that I'd like to replace <input>
element used for the search button in the search widget with a <button>
. The diazo docs seem to suggest you can do this.
In my theme html file I have an empty <div id="portal-searchbox"></div>
. In my rules.xml I have the following:
<rules if-content="$enabled">
<replace css:theme="div#portal-searchbox">
<xsl:apply-templates css:select="div#portal-searchbox" />
</replace>
<xsl:template css:match="div#portal-searchbox input.searchButton">
<button type="submit"><img src="images/search.png" alt="Search" /></button>
</xsl:template>
</rules>
I've tried numerous variations of this but with no success. Any help would be much appreciated.