Article display problem...

Author Message

Douglas Johnson

Thursday 24 July 2003 10:10:37 am

I've got a folder with 3 articles inside it. When I link to the folder I would like to display article #2 in the {$module_result.content}. Again.....click link to "folder" displays an article. Can anyone show me how to do this? Thanks in advance. Doug Johnson.

Kjerand Pedersen

Thursday 24 July 2003 11:40:04 am

Find the id of article#2, then, in the template for the containing folder, fetch only this node (assuming you've created an override template for the folder).

Let's say the article's node_id is 100, then you'd write something like this in the template (for the containing folder):

---

{let article_2=fetch('content','node',hash(node_id,100))}

{$article_2:item.data_map.title.content}
....and so on....

{/let}

Not sure if this is what you ment, but I hope it helps.

Douglas Johnson

Friday 25 July 2003 7:35:35 am

{let article_2=fetch('content','node',hash(node_id,100))}

{$article_2:item.data_map.title.content}

{/let}

This code does not work for me. Thanks anyway.

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

Main resources:

Total runtime0.7376 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.0052 587.9063152.6250
Module start 'layout' 0.00520.0037 740.531339.4453
Module start 'content' 0.00890.7275 779.9766466.7734
Module end 'content' 0.73640.0012 1,246.75008.1641
Script end 0.7376  1,254.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4236160.0002
Check MTime0.00130.1792160.0001
Mysql Total
Database connection0.00080.104410.0008
Mysqli_queries0.696394.3905570.0122
Looping result0.00050.0672550.0000
Template Total0.700094.920.3500
Template load0.00190.257620.0010
Template processing0.698194.634420.3490
Template load and register function0.00010.019010.0001
states
state_id_array0.00560.758810.0056
state_identifier_array0.00130.180020.0007
Override
Cache load0.00150.2046190.0001
Sytem overhead
Fetch class attribute can translate value0.00080.108720.0004
Fetch class attribute name0.00120.156630.0004
XML
Image XML parsing0.00020.029320.0001
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00130.1699100.0001
String conversion0.00000.001640.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/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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs