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 » Extensions » EZOE - custom tags

EZOE - custom tags

EZOE - custom tags

Wednesday 09 September 2009 11:14:47 am - 3 replies


I would like to use custom tags for creating forms i've added:

in content.ini.append.php and i can use thouse tags in editor.

when i turn off ezoe i can see somethinf like this:
<custom name="form">
<custom name="radio" custom:name="test" custom:value="123">radio</custom>
<custom name="radio" custom:name="test" custom:value="1234">radio</custom>
<custom name="input" custom:name="textInput">input</custom>

i've created templates for every new tag and it works almost as expected happy.gif Emoticon

example customtag_radio.tpl override:
{*?template charset=utf-8?*}
<input type="radio" name="{$name}" value="{$value}" />{$content}

But when i look at page source of generated xml block i get:
<label><input value="awda" type="radio"></label>
<p style="font-size: 14px;">radio</p>

as you can see NAME attribute is not present and <label> is closed in wrong place. Any clue what might be wrong ?

I also have a question about displaying custom tags in ezoe ... can i change the way different tags are shown in the editor window ?

Wednesday 09 September 2009 12:04:12 pm

I guess it conflicts with the name attribute on custom tags, so use a different name for your custom attribute.

Wednesday 09 September 2009 12:55:39 pm

Unfortunatly it did not help :/ i've changed $name to $attr_name and same thing happens. Look at the output of a template

<input type="radio" name="{$name}" value="{$value}" />{$content}

<input value="awda" type="radio"> <-- no ending for <input ... />
<p style="font-size: 14px;">

I've double checked and Ez Publish uses this template to generate my radio button but for some reason it deletes name="" and twists my html.

Modified on Wednesday 09 September 2009 12:56:29 pm by Daniel Puchatek

Wednesday 09 September 2009 8:25:06 pm

Could you try:

<input type="radio" name="{$attr_name}" value="{$value}" />

Modified on Wednesday 09 September 2009 8:25:51 pm by André R


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

36 542 Users on board!

Forums menu

Proudly Developed with from