[Solved] Online editor classes selection and CustomTag param

[Solved] Online editor classes selection and CustomTag param

Friday 28 August 2009 1:30:48 am - 5 replies

Modified on Friday 28 August 2009 5:35:28 am by Jeremy B.

Author Message

Jeremy B.

Friday 28 August 2009 4:26:17 am

It sounds like I'm missing something here...

Do I have to create a CustomTag in order to let an editor create a "blue paragraph" ?

Thanks to the one who can take the time to answer me :)

André R.

Friday 28 August 2009 4:44:12 am

Click on the 'paragraph' name in the status line (tag path) on the bottom off the editor, that will open the properties of the tag. You can do this on all tags.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jeremy B.

Friday 28 August 2009 5:09:59 am

Aaaahh :))

Thank you André, this was so simple...
Very nice extension btw :)

I very much appreciate your help André, and all answers you're giving to me for the past few days !

One litte more if you can :

I'm trying to create a CustomTag with a dropdown as parameter.
I configured it like this :

[CustomTagSettings]
# Here I don't need built-in tags : factbox, sub, etc.
AvailableCustomTags[]
AvailableCustomTags[]=intro

[intro]
AllowEmpty=true
Required=true
CustomAttributes[]
CustomAttributes[]=couleur

[CustomAttribute_intro_couleur]
Type=select
Selection[]
Selection[bleu]=Bleu
Selection[orange]=Orange
Selection[noir]=Noir

As documented in the ezoe_attrbiutes.ini file.
But I always get the default "text" input. Also tried with a "color" type, but I always get this same "text" input type.

Any idea why my tag param isn't taking the right type ?

Regards

André R.

Friday 28 August 2009 5:23:10 am

nop :)

The [CustomAttribute_intro_couleur] block just needs to be in ezoe_attribute.ini[.append.php] instead, I don't document content.ini settings in ezoe_attribute.ini ;)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jeremy B.

Friday 28 August 2009 5:34:36 am

Lol indeed, that's a good point :)

It works fine now !

Thanks

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.