How the days go by.

Author Message

Martin Ulrich

Monday 08 September 2003 4:49:25 am

In product.tpl the code
... {section name=ContentAction loop=$content_object.content_action_list show=$content_object.content_action_list} ....

gives me two buttons (add to cart and add two wishlist).

idiot questions:

1. How and where I change the priority of the buttons? Is there a template?
2. How is the code to see only ONE button (cart oder wishlist) (something with parameter "show", I think, but I'm too stupid for this)

:-)
perhaps somebody wants to help a n amateur

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Bjørn Kaarstein

Monday 08 September 2003 4:54:58 am

In your site.ini or site.ini.append you'll find the block

[TemplateSettings]
Debug=disabled

Set this to enabled, and you will see which templates is being used where. Then you can take a look in the correct templates and find out where the buttons are made.

By priority, I assume you mean the order of the buttons. This is just basic HTML in the templates and can be modified.

Regards Bjørn

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

Main resources:

Total runtime0.7596 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 590.2656152.6094
Module start 'layout' 0.00500.0030 742.875039.4141
Module start 'content' 0.00800.7499 782.2891488.8125
Module end 'content' 0.75800.0016 1,271.10168.1875
Script end 0.7595  1,279.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4076160.0002
Check MTime0.00130.1695160.0001
Mysql Total
Database connection0.00060.082710.0006
Mysqli_queries0.716394.2982540.0133
Looping result0.00050.0670520.0000
Template Total0.727495.820.3637
Template load0.00190.250520.0010
Template processing0.725595.510820.3627
Template load and register function0.00020.023310.0002
states
state_id_array0.00110.140610.0011
state_identifier_array0.00090.114320.0004
Override
Cache load0.00150.1979180.0001
Sytem overhead
Fetch class attribute can translate value0.00070.093320.0004
Fetch class attribute name0.00120.153920.0006
XML
Image XML parsing0.00020.026720.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00200.2616100.0002
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs