Forums / Setup & design / poll linebreak

poll linebreak

Author Message

risto CMS user

Tuesday 28 March 2006 4:13:31 am

How kan I make the options break to different lines?

{attribute_view_gui attribute=$node.data_map.question}

Kristoffer Karlsson

Thursday 12 October 2006 3:39:55 pm

I have the same problem.

Question?: O Option 1 O Option 2 O Option 3

I would like it like this instead...

Question?
O Option 1
O Option 2
O Option 3

_____________________________________
Blog: http://www.kristofferkarlsson.com
Website: http://www.spelkanalen.com

Claudia Kosny

Friday 13 October 2006 11:30:15 am

Hello K

What version of EZ do you use? In EZ 3.8.4 it looks alright.

Anyway here is how to go on in such a case (this is based on EZ 3.8.4). The attribute $node.data_map.question is of type option and is a information collector. Therefore the attribute_view_gui calls up the view template for an information collecting option attribute which is located here:
\design\standard\templates\content\datatype\collect\ezoption.tpl

If you need to, create an override for this file and add your linebreaks or adapt the CSS.
Please note that this will change the display of all the options that are information collectors, not just the polls.
According to the documentation there is no override condition available for content/datatype/collect/*.tpl, but you might want to try anyway - sometimes the doc is not uptodate. Alternatively you could display the options directly in the full/poll.tpl without using the attribute_view_gui functionality.

Greetings from Luxembourg

Claudia