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.

eZ debug

Timing: Jan 18 2025 22:29:44
Script start
Timing: Jan 18 2025 22:29:44
Module start 'layout'
Timing: Jan 18 2025 22:29:44
Module start 'content'
Timing: Jan 18 2025 22:29:44
Module end 'content'
Timing: Jan 18 2025 22:29:44
Script end

Main resources:

Total runtime0.0120 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.0043 588.0469152.6406
Module start 'layout' 0.00430.0025 740.687539.4766
Module start 'content' 0.00680.0038 780.164189.2578
Module end 'content' 0.01050.0015 869.421934.3047
Script end 0.0120  903.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002319.2611140.0002
Check MTime0.00108.2989140.0001
Mysql Total
Database connection0.00054.432410.0005
Mysqli_queries0.001713.736530.0006
Looping result0.00000.091010.0000
Template Total0.001210.210.0012
Template load0.00065.271410.0006
Template processing0.00064.929110.0006
Override
Cache load0.00053.759610.0005
General
dbfile0.00021.610780.0000
String conversion0.00000.051440.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