[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.

eZ debug

Timing: Jan 18 2025 11:41:46
Script start
Timing: Jan 18 2025 11:41:46
Module start 'layout'
Timing: Jan 18 2025 11:41:46
Module start 'content'
Timing: Jan 18 2025 11:41:47
Module end 'content'
Timing: Jan 18 2025 11:41:47
Script end

Main resources:

Total runtime0.7878 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1719152.6563
Module start 'layout' 0.00530.0025 740.828139.5078
Module start 'content' 0.00780.7786 780.3359572.6016
Module end 'content' 0.78630.0014 1,352.937516.0938
Script end 0.7877  1,369.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4159160.0002
Check MTime0.00140.1772160.0001
Mysql Total
Database connection0.00090.110610.0009
Mysqli_queries0.726892.2597660.0110
Looping result0.00070.0842640.0000
Template Total0.754195.720.3771
Template load0.00220.280720.0011
Template processing0.751995.447220.3760
Template load and register function0.00020.024210.0002
states
state_id_array0.00120.158010.0012
state_identifier_array0.00200.259020.0010
Override
Cache load0.00190.2470410.0000
Sytem overhead
Fetch class attribute can translate value0.00090.113120.0004
Fetch class attribute name0.00140.175570.0002
XML
Image XML parsing0.00060.081320.0003
class_abstraction
Instantiating content class attribute0.00000.002280.0000
General
dbfile0.00080.0954170.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs