Forums / Developer / Unsupported tag

Unsupported tag

Author Message

Randeep Walia

Monday 30 August 2004 8:11:42 pm

When I try to create an article, sometimes I want to use custom style rules so I try put text in a <font> tag, to which, EZ Publish comes back with a 'Unsupported Tag <font>' reply.

Well- only trusted users will be creating these articles so is there some way to circumvent this security measure?

Randeep

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish

Ole Morten Halvorsen

Tuesday 31 August 2004 1:04:03 am

If you do not want any restrictions use the text field instead of the XML field. If you are stuck with the XML field you can use the <literal> which allows you to put HTML inside.

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Alex Jones

Tuesday 31 August 2004 6:21:12 am

Randeep, is there any reason you can't provide your trusted users with a different tag to use? You could create custom XML tags that make proper use of CSS which will help to avoid future problems. By putting font tags into your actual content, you will be forced to edit each and every article down the road as <i><font</i> is deprecated. By using HTML directly in a text field, some of the strength of eZ publish, or for that matter, any CMS is lost, as future redesigns will thus require changing or manipulating the content.

<b>Custom Tags:</b> http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Borgermans

Tuesday 31 August 2004 9:14:39 am

Be careful

The <literal> tag by default will make sure you see html code. In the standard design, it is mapped to

<pre>{$content|wash(xhtml)}</pre>

So you will have to modify this somewhat before you can input raw html.

At the same time I would add: don't use (x)html in any xml field, its a hack which breaks other features, pdf geneation and future outut conversions to name a few.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Randeep Walia

Tuesday 31 August 2004 10:51:05 am

I was aware of the custom tags article at http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags
but I didn't want to use this method, mostly out of laziness, but also because the task for which I wanted to use the font or span or whatever is pretty trivial and would only occur once or twice in the whole website.

But what the heck... I'll give it a shot!

The directions say to make a change to the content.ini.php file to include [CustomTagSettings], is this true for eZPublish version 3.4.1 (which is what I am using)? I have a feeling I should make this change to content.ini.append.php- but in my 'plain' directory or in my 'plain_admin' directory?

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish

Randeep Walia

Tuesday 31 August 2004 12:15:50 pm

Okay, so I have implemented my custom tag- I call it 'emailtext'.

Now there is a new problem, buecause I use the tag like so:

<custom name="emailtext">
<strong>From:</strong> Me
<strong>To:</strong> You
</custom>

but the admin interface comes back at me saying:
Tag 'strong' is not allowed to be the child of 'custom' (removed);

So how do I fix this? Thanks in advance to any help you can give, and I am also posting this question on the http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags page.

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish