Wednesday 14 June 2006 2:23:11 am
The only thing <literal> does is create a <pre> block and apply wash() to everything in it. Doing class='blabla' only produces a <pre class='blabla'>, with everything inside it still washed. Jeroen, I'm thinking you could accomplish this by creating your own custom tag, as well as an "unwash" eqivalent, some kind of reverse wash. <b>Step 1:</b> Go in <b>both</b> the admin siteaccess and in the siteaccess you want to use this, and add this to custom.ini.append.php (create them if they don't exist):
[CustomTagSettings]
AvailableCustomTags[]=html
IsInline[html]=true
<b>Step 2:</b> Go to settings/override/template.ini.append.php and create an unwash function:
[PHP]
PHPOperatorList[unwash]=html_entity_decode
<b>Step 3:</b> Create the override, by going to design/yoursite/templates/content/datatype/view/ezxmltags/ and creating html.tpl with this in it:
{$content|unwash()}
<b>Step 4:</b> Clear your ini cache (possibly your template cache too). <b>Step 5:</b> In the admin interface, every time you edit an XML block you can now add something like this:
<custom name='html'>»</custom>
...or whatever other HTML you want.
|