Share » Forums » Setup & design » Adding options to Custom Tags

Adding options to Custom Tags

Adding options to Custom Tags

Tuesday 19 June 2007 10:44:51 pm - 6 replies

Author Message

Łukasz Serwatka

Tuesday 19 June 2007 11:18:24 pm

Hi Paul,

It is possible:

content.ini.append.php
[factbox]
CustomAttributes[]=align
CustomAttributes[]=title
CustomAttributesDefaults[align]=right
CustomAttributesDefaults[title]=factbox

You can do the same for your custom tags. CustomAttributesDefaults[] contains predefined value, that will be displayed in custom tag popup window.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

paul bolger

Wednesday 20 June 2007 12:08:12 am

Hi Lukasz

Thanks, but that isn't quite what I need. I'd like to set a range of options - something like this: (it was a guess which didn't work)

CustomAttributesOptions[zoom]=12
CustomAttributesOptions[zoom]=14
CustomAttributesOptions[zoom]=16
CustomAttributesOptions[zoom]=18

and have the different zoom levels appear as a drop-down list.

I'm sure I've seen a DisplayName option somewhere too, something which would convert 12, 14 etc to "close", "not so close", "even less close" - or whatever. Think it was in the ezwebin settings somewhere, but I can't find it again.

thanks.

Paul Bolger

Łukasz Serwatka

Wednesday 20 June 2007 12:13:56 am

This is not supported for custom attributes. It is supported for CSS class description. Example for ezwebin: ClassDescription[itemized_sub_items]=Itemized Sub Items where friendly name is displayed in dropdown box.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

paul bolger

Wednesday 20 June 2007 12:27:48 am

# Wednesday 20 June 2007 9:13:56 am
# This is not supported for custom attributes. It is supported for CSS class description. Example for ezwebin: ClassDescription[itemized_sub_items]=Itemized Sub # Items where friendly name is displayed in dropdown box.

Yep, just discovered that (using AttributeDescription).

How about the option/dropdown thing?

- BTW, so as not to confuse others reading this thread: the [itemized_sub_items] is an eZpublish class, not a CSS class.

regards

Paul Bolger

André R.

Wednesday 20 June 2007 12:40:17 am

> - BTW, so as not to confuse others reading this thread: the [itemized_sub_items] is an eZpublish class, not a CSS class.

yes and no, its both. It's a template override for that and some other classes, so they also define a different behavior.

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

Łukasz Serwatka

Wednesday 20 June 2007 12:40:27 am

@Paul:
I'm sorry but you are not correct ;) It is CSS class. And override it is based on classification for that embed template. Also itemized_sub_items is used in <div class="object-left itemized_sub_items">. It is not eZ Publish content class.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

36 542 Users on board!

Forums menu