[Solved] Online editor classes selection and CustomTag param

Author Message

Jeremy B.

Friday 28 August 2009 1:30:48 am

Hi there,

I can't find where I can assign a CSS class to an element with the OE v5 ?

I put in my content.ini :

[paragraph]
AllowEmpty=true
AvailableClasses[]=bleu_oe
ClassDescription[bleu_oe]=Paragraphe bleu

Seems to be ok, because if I turn off the editor and put the classe manually, the editor is keeping it when publishing.

But I can't find the way to assign this class via a button in the Online Editor toolbar ?

The perfect thing will be to have the "styles" dropdown list like in the example of TinyMCE :
http://tinymce.moxiecode.com/examples/full.php

Does someone know how to do it ?

Thanks in advance :)

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

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