eZ Community » Forums » General » Need help showing line_view
expandshrink

Need help showing line_view

Need help showing line_view

Friday 25 February 2005 2:31:02 pm - 4 replies

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

Friday 25 February 2005 3:08:52 pm

Stephen,

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

Friday 25 February 2005 3:18:50 pm

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

Saturday 26 February 2005 12:47:45 am

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

Saturday 26 February 2005 11:12:41 am

Thank you, thank you, thank you!! It worked fine blunk.gif Emoticon

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from