This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » General » How to enable div and class elements...

How to enable div and class elements in text editor

How to enable div and class elements in text editor

Friday 31 January 2014 11:15:53 am - 2 replies

Hi to all!

Is there any way to enable div and class elements in text editor?

I have one page where i want to add some pop-out form made with div and classes tags and i want to put form on mid section of page. I don’t want to call from .tpl file because I just need on one page.

Thanks in advance!

Friday 31 January 2014 2:41:40 pm

If you have one attribute in a class that you would like to be able to attach different content to, I recommend overriding either the attribute or class template to include the node id or other identifying data on the containing tag.  For example:

<div class="folder node-{$}"> <!-- or --> <div class="folder object-{$}">

Then you can use jQuery to apply an event handler that links the content to a contact form on your site or a dynamically created popup/hidden div.

I have found that if you want to do something on only one page, in the near future, you find you want to do it elsewhere as well.  In this case, it is easy enough to set it up that it is probably worth the investment.


Saturday 01 February 2014 8:50:32 am

If you need to access the uploaded filename in templates you can do this with:


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

36 542 Users on board!

Forums menu

Proudly Developed with from