reply to forum message

Author Message

Renato Rjavec

Wednesday 25 June 2003 6:36:07 am

When posting a forum reply, I would like to display the message which the reply goes to (as it is on this forum). I've tried to modify the demo's forumedit.tpl, but had no success yet. I'm using ezp 3.1b2.

Bård Farstad

Wednesday 25 June 2003 7:00:24 am

You can do something like:
Reply to:{$parent_node.name} {$parent_node.data_map.message.content|wash(xhtml)|nl2br}

--bård

Documentation: http://ez.no/doc

Renato Rjavec

Wednesday 25 June 2003 9:23:59 am

Sorry, but it doesn't work (copy-pasted). I've already tried to access $parent_node data by myself, but there was no output. I also unsucessfully tried to fetch the object by using $main_node_id variable (which is used in the template).

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 16:19:52
Script start
Timing: Jan 18 2025 16:19:52
Module start 'layout'
Timing: Jan 18 2025 16:19:52
Module start 'content'
Timing: Jan 18 2025 16:19:52
Module end 'content'
Timing: Jan 18 2025 16:19:52
Script end

Main resources:

Total runtime0.0196 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.9063152.6250
Module start 'layout' 0.00680.0031 740.531339.4453
Module start 'content' 0.00990.0077 779.976689.3047
Module end 'content' 0.01760.0020 869.281330.3047
Script end 0.0196  899.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002814.1586140.0002
Check MTime0.00125.9466140.0001
Mysql Total
Database connection0.00115.825110.0011
Mysqli_queries0.003417.125830.0011
Looping result0.00000.071610.0000
Template Total0.00168.310.0016
Template load0.00094.588010.0009
Template processing0.00073.631310.0007
Override
Cache load0.00063.146910.0006
General
dbfile0.00031.409580.0000
String conversion0.00000.041340.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