I would like to have an empty variable (Value) I have a variable which sets the alignment of text in a div. The default of text alignment in divs is left. I created 3 options (with text-left always selected): [code] - name: alignment class: info.magnolia.ui.form.field.definition.OptionGroupFieldDefinition label: Align text/image to sortOptions: false options: - name: left label: left value: null selected: true - name: center label: center value: text-center - name: right label: right value: text-right [/code]
In the front-end I do the following request: [#if content.alignment?has_content]${content.alignment!}[/#if] Any good way to do this? -- 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> ----------------------------------------------------------------