Journal

Journal

30 September 2006

Textile in Symphony

Testing Symphony's Textile Text Formatter Campfire Service. If all is working as it should, the body of this article will contain XSLT code from one of my page templates. According to Allen, the text input fields should be validated so as not to break the front end of a Symphony site.

My home page template looks something like this:

                  
<xsl:template match="data">

<div id="section">
<div id="sectionimg"><p>The elementary forms: sphere, cone and cube.</p>
</div>
</div>

<div id="sectionhead"><h2>Recent Projects</h2></div>

<div id="contentthumbs">

<xsl:for-each select="portfolio/entry">
<xsl:sort select="fields/created" order="descending"/>
<xsl:if test="fields/preview != '' and position() &lt;=7">
<a href="{$root}/design/{fields/media/@handle}/{@handle}/" title="{fields/title}"><img class="preview_off" src="{$root}/{fields/preview-off/item/path}" width="107" height="107" alt="{fields/title}" /><img class="preview_over" src="{$root}/{fields/preview/item/path}" alt="{fields/title}" /></a>
</xsl:if>
</xsl:for-each>

</div>

</xsl:template>
                

And, in fact, everything is working as it should, so far.