ez.no Forum reply template

Author Message

Brendan Pike

Tuesday 12 April 2005 9:36:45 pm

I love the knew design for forum replies. I've been working on improving some ez forums also and wanted to ask how it was possible to retrive information about the parent object while inside a objects edit view? I've looked at the available information and for example it doesn't seem possible to fetch the parent's topic in the eZp 3.6 alpha release.

Also what are the thought's about using a XML text field for the forum body, any reason this wouldn't be a good idea?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Ɓukasz Serwatka

Wednesday 13 April 2005 12:20:15 am

Hi Brendan,

You can fetch parent of new object:

{let parent_node=fetch('content','node',hash(node_id,$object.current.main_parent_node_id))}

{$parent_node.name}

{/let}

$parent_node.children holds information about node children. Can be use in section as loop param.

New forum design will be available in future eZ publish release.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Brendan Pike

Wednesday 13 April 2005 10:58:15 pm

Thanks Lukas
Excactly what I needed.

And what do you think about using XML datatype for forum messages? I guess I'd loose access to simpletag operaters and code tags but seems to then offer many other advantages. Any "gotcha's" I'm not thinking about?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

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 20 2025 20:51:31
Script start
Timing: Jan 20 2025 20:51:31
Module start 'layout'
Timing: Jan 20 2025 20:51:31
Module start 'content'
Timing: Jan 20 2025 20:51:32
Module end 'content'
Timing: Jan 20 2025 20:51:32
Script end

Main resources:

Total runtime1.0640 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0037 587.9141151.2109
Module start 'layout' 0.00370.0024 739.125036.6484
Module start 'content' 0.00621.0570 775.7734559.0156
Module end 'content' 1.06320.0007 1,334.789111.8516
Script end 1.0639  1,346.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00260.2475160.0002
Check MTime0.00120.1121160.0001
Mysql Total
Database connection0.00060.054310.0006
Mysqli_queries1.032197.0084570.0181
Looping result0.00040.0383550.0000
Template Total1.042298.020.5211
Template load0.00160.151920.0008
Template processing1.040697.799920.5203
Template load and register function0.00020.017210.0002
states
state_id_array0.00060.054110.0006
state_identifier_array0.00060.052620.0003
Override
Cache load0.00130.1260160.0001
Sytem overhead
Fetch class attribute can translate value0.00060.059920.0003
Fetch class attribute name0.00090.088040.0002
XML
Image XML parsing0.00060.053420.0003
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00060.0558180.0000
String conversion0.00000.000640.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs