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

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 31 2025 01:29:45
Script start
Timing: Jan 31 2025 01:29:45
Module start 'layout'
Timing: Jan 31 2025 01:29:45
Module start 'content'
Timing: Jan 31 2025 01:29:45
Module end 'content'
Timing: Jan 31 2025 01:29:45
Script end

Main resources:

Total runtime0.0298 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.0078151.1953
Module start 'layout' 0.00480.0047 739.2031220.6719
Module start 'content' 0.00950.0189 959.8750997.8828
Module end 'content' 0.02830.0014 1,957.757833.9922
Script end 0.0298  1,991.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00299.6984140.0002
Check MTime0.00134.2432140.0001
Mysql Total
Database connection0.00072.259710.0007
Mysqli_queries0.00309.931330.0010
Looping result0.00000.044010.0000
Template Total0.00113.610.0011
Template load0.00092.957710.0009
Template processing0.00020.628410.0002
Override
Cache load0.00062.028410.0006
General
dbfile0.00020.724480.0000
String conversion0.00000.027240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs