Editing the output of attribute_view_gui

Author Message

Andrew Wigglesworth

Monday 11 July 2005 9:34:13 am

Hi,

There is probably a simple solution here, but it is not obvious to me. I have used the following code in a pagelayout template to show a poll.

It uses "attribute_view_gui" to show the results. The problem is with the line;

{attribute_view_gui attribute=$poll_list[0].object.data_map.question}

This gives the questions, but they are not in a column, one under the other, but just as one long string.

How do I rdit the output of attribute_view_gui ?

{let poll_list=fetch(  content, list,
   hash( parent_node_id, 407, 
   sort_by, array( array( published, false() ) ),
   limit, 1 ) )
}

    <div>
        <div>
        {attribute_view_gui attribute=$poll_list[0].object.data_map.description}
        </div>

        <form method="post" action={"content/action"|ezurl}>
 <fieldset>
 <legend>vote now</legend>

        <input type="hidden" name="ContentNodeID" value="{$poll_list[0].node_id}" />
        <input type="hidden" name="ContentObjectID" value="{$poll_list[0].object.id}" />
        <input type="hidden" name="ViewMode" value="full" />

        <div>
        {attribute_view_gui attribute=$poll_list[0].object.data_map.question}
        </div>

        {section show=is_unset( $versionview_mode )}
        <input class="button" type="submit" name="ActionCollectInformation" value="Vote" />
        {/section}
 </fieldset>
        </form>

        <div>
            <div class="attribute-link">
                <p><a href={concat( "/content/collectedinfo/", $poll_list[0].node_id, "/" )|ezurl}>{"Result"|i18n("design/base")}</a></p>
            </div>
        </div>

    </div>
{/let}

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 30 2025 19:38:05
Script start
Timing: Jan 30 2025 19:38:05
Module start 'layout'
Timing: Jan 30 2025 19:38:05
Module start 'content'
Timing: Jan 30 2025 19:38:05
Module end 'content'
Timing: Jan 30 2025 19:38:05
Script end

Main resources:

Total runtime0.0342 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.2656151.2266
Module start 'layout' 0.00730.0069 739.4922220.7188
Module start 'content' 0.01410.0179 960.2109997.8672
Module end 'content' 0.03200.0022 1,958.078129.9922
Script end 0.0341  1,988.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00298.5869140.0002
Check MTime0.00113.2877140.0001
Mysql Total
Database connection0.00092.577010.0009
Mysqli_queries0.005816.828530.0019
Looping result0.00000.064210.0000
Template Total0.00133.910.0013
Template load0.00102.828810.0010
Template processing0.00031.015510.0003
Override
Cache load0.00072.044210.0007
General
dbfile0.00030.816780.0000
String conversion0.00000.032140.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