To remove child name from front view page.

Author Message

nga patel

Monday 02 May 2005 3:56:01 am

I have use the same templates which is given in tutorial to show all child of main folder, which is as follws:

{* Grab all the child nodes. *}
{let children=fetch( content, list, hash( parent_node_id, $node.node_id,
sort_by, $node.sort_array ))}
<table class="accueil_list" cellpadding="0" cellspacing="0" border="0">

{* Loop through all nodes that we just fetched. *}
{section name=Child loop=$children}
{* Output the name as a link to the node containing the member. *}
<tr>
<td>
{node_view_gui view=line content_node=$Child:item}
</td>
</tr>
{* End of loop. *}
{/section}
</table>
{/let}

But I my site, I want to change this templates like that it does not show all the child name but just one class description, means I need just the description of the subclass which I had created under the main folder, and not display the name of all child which is created under the same folder.

I try to do that can't successed, any body tell me what exactly I had to do change. I had already created line view templeate for that sub class and i can obtained that class view successfully when I click on that main folder, but due to above templates, the rest child name is also apper on the front page, which I want to remove.

Thanks

 

M M

Wednesday 04 May 2005 6:48:27 am

HI

you can do this by replacing this

{node_view_gui view=line content_node=$Child:item}

by

{attribute_view_gui attribute=$:item.object.data_map.description}

this would display only the description of the child of the current node you are in now

I hope this would be usefull

nga patel

Thursday 12 May 2005 9:07:14 am

Thaks M M, To help me, but it does not work. After doing this change everything is disappear, but I just need the class description which I had created under the main folder.
Any other suggestion !!
Thanks

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.