Link to forum, not message, on forum frontpage

Author Message

Eivind Marienborg

Friday 23 July 2004 4:16:24 am

I have a folder with several forums, and beneath each forum I have a list of the 3 most recent posts to that forum, using

<ul>
    {let grandchildren=fetch('content',list,hash(parent_node_id,$Child:item.node_id,
                                                depth, 3,
                                                'sort_by',array("published", false()),
                                                limit, 3,
                                                ))}
    {section name=Grand loop=$:grandchildren}

<li><a href={$:item.url_alias|ezurl}>{$:item.object.data_map.name.content|wash}{$:item.name}</a> &nbsp;  - {$:item.object.published|l10n(datetime)}</li>
{/section}

</li>
</ul>

The problem is that this links directly to the message, and not to the message's place in the forum (like here on EZ.no, with #msgnr in the link). How can I do this?

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 03:20:04
Script start
Timing: Jan 20 2025 03:20:04
Module start 'layout'
Timing: Jan 20 2025 03:20:04
Module start 'content'
Timing: Jan 20 2025 03:20:06
Module end 'content'
Timing: Jan 20 2025 03:20:06
Script end

Main resources:

Total runtime1.2570 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.0054 589.2891152.6406
Module start 'layout' 0.00540.0038 741.929739.4766
Module start 'content' 0.00931.2461 781.4063438.9922
Module end 'content' 1.25540.0016 1,220.39848.1250
Script end 1.2569  1,228.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2705160.0002
Check MTime0.00130.1067160.0001
Mysql Total
Database connection0.00070.052410.0007
Mysqli_queries1.214996.6495460.0264
Looping result0.00050.0394440.0000
Template Total1.214196.620.6071
Template load0.00210.170420.0011
Template processing1.212096.418220.6060
Template load and register function0.00010.008510.0001
states
state_id_array0.00180.143010.0018
state_identifier_array0.00320.256520.0016
Override
Cache load0.00170.132070.0002
Sytem overhead
Fetch class attribute can translate value0.00050.041910.0005
Fetch class attribute name0.00070.055920.0004
XML
Image XML parsing0.00050.040510.0005
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00200.1606160.0001
String conversion0.00000.000840.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs