Attribute limitation

Author Message

James Packham

Thursday 19 February 2004 2:29:26 am

Hi,

I've found a slight limitation to attributes that I htink makes an interesting (though probably difficult to implement) sugestion:

I want to add a description of my attributes to help people filling out input forms. To make this editable from a web based interface I have to add the description to the "Name" field of the attribute, a simplified example:

Summary (a few words to describe your article)

At the moment "(a few words to describe your article)" will appear in the view template, which isn't really a good option. My solution at the moment is to hard code "(a few words to describe your article)" into the template and pipe with i18n. This isn't the best solution because anyone who wants to change this description needs an understanding ofthe layout of the design directory of EZ Publish.

My suggestion:

Add a field to attributes which allows this kind of description to be added.

Regards,

James

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 18 2025 14:58:06
Script start
Timing: Jan 18 2025 14:58:06
Module start 'layout'
Timing: Jan 18 2025 14:58:06
Module start 'content'
Timing: Jan 18 2025 14:58:07
Module end 'content'
Timing: Jan 18 2025 14:58:07
Script end

Main resources:

Total runtime0.8116 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0137 587.9063152.6250
Module start 'layout' 0.01370.0040 740.531339.4297
Module start 'content' 0.01770.7920 779.9609437.8516
Module end 'content' 0.80970.0018 1,217.81258.1875
Script end 0.8115  1,226.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3916160.0002
Check MTime0.00130.1610160.0001
Mysql Total
Database connection0.00070.088210.0007
Mysqli_queries0.763194.0232460.0166
Looping result0.00050.0566440.0000
Template Total0.768194.620.3840
Template load0.00210.259220.0011
Template processing0.765994.375420.3830
Template load and register function0.00010.010810.0001
states
state_id_array0.00120.143210.0012
state_identifier_array0.00250.304920.0012
Override
Cache load0.00160.2018130.0001
Sytem overhead
Fetch class attribute can translate value0.00050.064510.0005
Fetch class attribute name0.00050.062420.0003
XML
Image XML parsing0.00040.047710.0004
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00871.0755160.0005
String conversion0.00000.001740.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/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: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs