Problem creating a forum_reply

Author Message

Luis Muñoz

Wednesday 16 June 2004 2:48:09 am

In forum_reply.tpl you include edit_attribute.tpl, which makes a call to attribute_edit_gui and generates a textarea. The problem is that the text area is too big and its imposible to fit in the design of my page. Is there any way to create a smaller textarea or custom size textarea? Are there any documentation on how to modify attribute_edit_gui?

Thanks

Pablo C. Vergara Castro

Friday 18 June 2004 3:11:45 am

Look in:
design/standard/templates/content/datatype/edit

Mazin Mustafa

Monday 13 September 2004 2:04:39 pm

Can someone please elaborate more on this topic. I have tried to override the content/edit/ezmatrix.tpl but it doesn't seem to take. Which template is used by the attribute_edit_gui function when a matrix data object is edited?

Eivind Marienborg

Monday 13 September 2004 3:11:18 pm

What I've done to fix this:

1. Create an override for the edit_attribute-template
2. Insert a switch in it, matching on the label of the field you wan't to manipulate. Leave the original template content in the standard case-block
3. Copy the standard template content into the case-block matching your field
4. Change the layout of it, for example by adding/changig CSS-class of the element, or adding a div with a class around it. This gives you the oppurtunity to manipulate the apperance of the field without even touching the template again
5. Update your CSS to correspond with the template

Mazin Mustafa

Tuesday 14 September 2004 12:46:04 pm

Thank you very much. I managed to override this template and add the case for my specific node. All that worked just like you suggested. I'm still experimenting with the css part. It is not yet clear to me what css is active for the attribute_edit_gui function.

best regards

Eivind Marienborg

Tuesday 14 September 2004 1:07:09 pm

That should be pretty easy to find out by examining the code output to your webbrowser. Good luck, glad to help :)

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

Main resources:

Total runtime1.2739 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 589.1563152.6250
Module start 'layout' 0.00410.0026 741.781339.4453
Module start 'content' 0.00671.2655 781.2266601.3438
Module end 'content' 1.27220.0017 1,382.570312.1641
Script end 1.2739  1,394.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2529160.0002
Check MTime0.00150.1163160.0001
Mysql Total
Database connection0.00050.039610.0005
Mysqli_queries1.223796.0558700.0175
Looping result0.00070.0580680.0000
Template Total1.241897.520.6209
Template load0.00200.158020.0010
Template processing1.239797.315820.6199
Template load and register function0.00020.016310.0002
states
state_id_array0.00150.121010.0015
state_identifier_array0.00120.096020.0006
Override
Cache load0.00160.1284240.0001
Sytem overhead
Fetch class attribute can translate value0.00100.079440.0003
Fetch class attribute name0.00140.111070.0002
XML
Image XML parsing0.00090.068340.0002
class_abstraction
Instantiating content class attribute0.00000.001280.0000
General
dbfile0.00070.0571160.0000
String conversion0.00000.000540.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs