Click Node link.....display article with $module_results.content

Author Message

Douglas Johnson

Thursday 24 July 2003 3:29:59 pm

How can I display the article within a node? Example...the user clicks on the link to node(folder) 23, this displays the article within that node(folder) using the $module_results.content statement. I had this working, but now somehow since I started over, it no longer works. Again.....the user clicks on the link to node(folder) 23, this displays the article within that node(folder) using the $module_results.content statement. Any ideas?
Thanks...Doug Johnson

Bjørn Kaarstein

Thursday 24 July 2003 11:21:24 pm

If you're using ezP 3.0, you'll have to write an override for full_class_1.tpl. This is the override that will decide how to display the content of the folder class.

Pretty much the same in ezP 3.1, but there you can name you override whatever you want, but you have to add some lines to your override.ini.

Something like:

[folder_full]
Source=node/view/full.tpl
MatchFile=folder_full.tpl
Subdir=templates
Match[class]=1

Also it's pretty useful to turn on debugging in your site.ini.append.php.

[TemplateSettings]
Debug=enabled

This will show you which template(s) are used on your respective node, and is a way to make sure that you are working with the correct file.

Regards Bjørn.

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

Main resources:

Total runtime0.0228 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.0134 588.1719152.6563
Module start 'layout' 0.01340.0021 740.828139.5078
Module start 'content' 0.01550.0052 780.335989.2891
Module end 'content' 0.02070.0020 869.625030.3047
Script end 0.0227  899.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.9230140.0002
Check MTime0.00115.0115140.0001
Mysql Total
Database connection0.007432.555110.0074
Mysqli_queries0.00177.473730.0006
Looping result0.00000.048210.0000
Template Total0.00177.310.0017
Template load0.00093.868310.0009
Template processing0.00083.438010.0008
Override
Cache load0.00062.612010.0006
General
dbfile0.00021.068980.0000
String conversion0.00000.091140.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