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.