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

Add class to element link

Add class to element link

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

Hi,

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"

Thanks

Djoo

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:

[link]
AvailableClasses[]=my_custom_css_class
AvailableClasses[]=another_css_class

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

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from