Forums / Install & configuration / customizing the whitelisted/blacklisted HTML tags

customizing the whitelisted/blacklisted HTML tags

Author Message

Kore Design

Thursday 28 December 2006 8:01:29 am

There are certain tags which don't seem to work, and i really need them.

For example, this code is rejected:

<table><tr>
<td valign="bottom"> test </td><td> test<br />test2<br /></td>
</tr></table>

Why does 'td' not accept 'valign', and how do I customize this?

Is there an admin feature to customize this? If not, what files should I be looking through to hack the code and adjust this?

Kristof Coomans

Thursday 28 December 2006 8:30:13 am

Hi Kore

If you're using eZ 3.9, then you can configure the allowed attributes of ezxml tags in content.ini. Take a look at http://pubsvn.ez.no/nextgen/trunk/doc/features/3.9/xml_custom_attributes.txt for more information.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kore Design

Thursday 28 December 2006 2:08:41 pm

I'm using version 3.8.0

I see there's quite a large changelog for 3.9.0 changes: http://pubsvn.ez.no/nextgen/trunk/doc/features/3.9/xml_custom_attributes.txt

Hmm.. I'll look into updating.

But is that the solution to my problem? Will I be able to use the HTML I described?

Kristof Coomans

Friday 29 December 2006 1:11:20 am

In the case you described this is a solution. You probably need to change some templates to insert the custom attributes.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org