Skip to content

Instantly share code, notes, and snippets.

<data>
<entry>
<caption mode="formatted">
<p>A fairly long looking <a href="http://www.stackoverflow.com">caption with a link</a> that goes to an external site.</p>
</caption>
</entry>
<entry>
<caption mode="unformatted">
<![CDATA[A fairly long looking <a href="http://www.stackoverflow.com">caption with a link</a> that goes to an external site.]]>
</caption>
<data>
<entry>
<caption mode="formatted">
<p>A fairly long looking <a href="http://www.stackoverflow.com">caption with a link</a> that goes to an external site.</p>
</caption>
</entry>
<entry>
<caption mode="unformatted">
<![CDATA[A fairly long looking <a href="http://www.stackoverflow.com">caption with a link</a> that goes to an external site.]]>
</caption>
@andrewminton
andrewminton / navigation.xsl
Created September 13, 2013 08:35
entry Based Navigation for Symphony CMS
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="*[section/@handle='pages']/entry" mode='link'>
<xsl:choose>
<xsl:when test="parent/item">
<xsl:apply-templates select='../../navigation/entry[@id=current()/parent/item/@id]' mode='link'/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select='$root'/>
<?php
require_once(TOOLKIT . '/class.administrationpage.php');
class contentExtensionBackendPagesIndex extends AdministrationPage{
private $pagecontent;
private $backenbdpages;
<data>
<hello>paste your xml here</hello>
<entry><title message="error"></title></entry>
<entry><title message="error"></title></entry>
<entry><title message="error"></title></entry>
<entry><title message="error"></title></entry>
</data>
<data>
<hello>paste your xml here</hello>
</data>
<data>
<hello>paste your xml here</hello>
<entry><title message="error"></title></entry>
<entry><title message="error"></title></entry>
<entry><title message="error"></title></entry>
<entry><title message="error"></title></entry>
</data>
<data>
<hello>paste your xml here</hello>
<p>Image.jpg</p>
<p>This is some text I don't want to convert .jpg</p>
</data>
<data>
<page-navigation>
<section id="1" handle="pages">Pages</section>
<entry id="5398">
<title-en handle="exhibitor-registration">Exhibitor Registration</title-en>
<title-cy handle="cofrestru-arddangoswr">Cofrestru Arddangoswr</title-cy>
<slug handle="exhibitor-registration">exhibitor-registration</slug>
<page>
<page handle="exhibitor-registration" id="92" parent-id="9">Exhibitor Registration</page>
</page>
<data>
<entry>
<p>Project 1</p>
<content>This is some content</content>
</entry>
<entry>
<p>Project 2</p>
<content>This is some content</content>
</entry>
<entry>