eZ Community » Forums » Extensions » ezoe - input instead of dropdown for...
expandshrink

ezoe - input instead of dropdown for class

ezoe - input instead of dropdown for class

Wednesday 28 August 2013 12:03:13 pm - 1 reply

Hi everyone,

I'm looking for a solution in EZOE to change the dropdown list to select class for paragraph into a input field, where the user could fill anything he wants.

I know I can add some classes in content.ini.append.php with "AvailableClasses[]", but my client needs to put more than one class.

So I got two options:

  1. transform the dropdown list into a multiple select list (maybe with some kind of attribute like AllowMultipleClass=true, don't know if that exists ?)
  2. change the dropdown list to an input tag

Any idea how to do this?

Thank you for your help.

 

Matt

Tuesday 04 November 2014 2:37:02 pm

Hi

How about just add a custom attribute for the paragraph?

content.ini.append.php

 [paragraph]
CustomAttributes[]=classlist

design/standard/templates/content/datatype/view/ezxmltags/paragraph.tpl

 <p{if $classlist|trim} class="{$classlist|wash}"{/if}>
{if eq( $content|trim(), '' )}&nbsp;{else}{$content}{/if}
</p>
expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from