Forums / Developer / How to override default value "align" of embed tag

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to override default value "align" of embed tag

Author Message

Fabien Mas

Thursday 30 April 2009 1:15:59 am

Hi,
In this file \kernel\classes\datatypes\ezxmltext\ezxmlschema.php, I have found the default value of 'align' attribute of 'embed' tag

 'attributesDefaults' => array( 'align' => 'right', 'view' => 'embed', 'class' => '' ) ),

I'd like to change this value without hacking this file
I've tried this in my content.in file, but it changes nothing

[embed]
CustomAttributes[]=align
CustomAttributesDefaults[align]=My_value

How can I do ?

thx for your help, Fabien