Need help showing line_view

Author Message

Steph A

Friday 25 February 2005 5:31:02 am

I have a code that fetches articles from all folders. The output is what I want, but not the way it looks. How do I show the articles in a spesific "line_view"?

{* Fetch all subfolders, each representing a news category *}
{let subfolders=fetch( content,
	list,
		hash( 'parent_node_id', 2,
		class_filter_type, include,
                                depth,3,
		class_filter_array, array( 'folder' )
		)
	)
}
{* For each subfolder, fetch the articles *}
{section loop=$subfolders}
{let articles=fetch( content,
	list,
		hash( 'parent_node_id', $:item.node_id,
		class_filter_type, include,
		class_filter_array, array( 'article' )
		)
	)
}
	{* For each article, display the name and the url to the article and the category *}
	{section loop=$articles}
	<li>
		<a href={$:item.url_alias|ezurl}>{$:item.name}</a>
	</li>

	{/section}
	{/let}
{/section}
{/let}

I dont want the

<li>
		<a href={$:item.url_alias|ezurl}>{$:item.name}</a>
	</li>

...but I want to show the articles with the template formatting specified for the section, node, etc....

I hope someone understand what I am looking for.....

Kind regards Stephen

Amina Bacar

Friday 25 February 2005 6:08:52 am

Stephen,

try this
{node_view_gui view=line content_node=$:item.node_id}

Steph A

Friday 25 February 2005 6:18:50 am

When I tried that - the output went wrong. Just got six document icons (blue). What can be wrong?

Ulrich L.

Friday 25 February 2005 3:47:45 pm

What about this:
{node_view_gui view=line content_node=$:item}

Steph A

Saturday 26 February 2005 2:12:41 am

Thank you, thank you, thank you!! It worked fine ;)

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

Main resources:

Total runtime0.0253 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1250151.2109
Module start 'layout' 0.00590.0040 739.3359220.6875
Module start 'content' 0.00990.0139 960.0234997.7734
Module end 'content' 0.02380.0015 1,957.796933.9922
Script end 0.0253  1,991.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003011.8376140.0002
Check MTime0.00124.6635140.0001
Mysql Total
Database connection0.00103.829510.0010
Mysqli_queries0.002610.225130.0009
Looping result0.00000.047110.0000
Template Total0.00114.310.0011
Template load0.00093.467010.0009
Template processing0.00020.836910.0002
Override
Cache load0.00062.519110.0006
General
dbfile0.00218.322680.0003
String conversion0.00000.028240.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