This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » eZ Publish 5 Platform » Add class to element link

Add class to element link

Add class to element link

Friday 23 May 2014 11:59:39 am - 2 replies


In my backend in the xml attribute field i have the possibility to add links.

In a link i have a attribute "Class". 

How can I add a class in this list that is then recover in my template? 
Example: I have to add the bootstrap class "btn CustomClass"



Friday 23 May 2014 12:08:51 pm

Hi Johann

AFAICT "class" attribute is supported and handled by eZXml2Html5_core.xsl.

To add a class to the list, you need to edit an override of content.ini in legacy (e.g. settings/override/content.ini.append.php, or inside a legacy bundle) and add the following:


Modified on Friday 23 May 2014 12:09:46 pm by Jérôme Vieilledent

Friday 23 May 2014 1:32:38 pm

Thanks happy.gif Emoticon


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

36 542 Users on board!

Forums menu

Proudly Developed with from