Import an eZXMLText custom tag with PHP

Import an eZXMLText custom tag with PHP

Thursday 21 August 2008 12:54:49 pm - 1 reply

Author Message

Tom TOMHTML

Friday 22 August 2008 9:18:59 am

OK, I've found the solution, thank you people :P

==>
The trick is to replace this:

$text = "lorem ipsum <img src='....' alt='...' /> dolor";

by that, with the PHP function or regular expression of your choice:

$text = "lorem ipsum <custom name='img' src='...' alt='...' /> dolor";

I hope this may help some.

PS: be careful with "width" attribute, it is already used by something else and it will be automatically fill with "100%", whatever the content of your attribute.



TOMHTML, French user of eZ Publish.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.