When using an "OptionGroup" - the property always has a value. You have the 
following options:

option-name     option-value
left            null
center          text-center
right           text-right

Your "option values" are Strings here in this example. This said, null does not 
really make sense (i would say).
The property "content.alignment" will have the value "null" ... which is not 
what you want.
I rather would use "text-left" for the 1st option.

Since it is an OptionGroup - as said in the beginning - content.alignment has 
always a value.

In the script, you could something like:


[code][#if "center"==content.alignment!]
... do something ..
[#elseif "text-right"==content.alignment!]
... do something ..
[#else]
... do something ..
[/#if][/code]

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=67abba57-92be-482c-9e1e-896883f79c5a


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to