Forums / Setup & design / To remove child name from front view page.

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

eZ debug

Timing: Jan 31 2025 04:25:13
Script start
Timing: Jan 31 2025 04:25:13
Module start 'content'
Timing: Jan 31 2025 04:25:13
Module end 'content'
Timing: Jan 31 2025 04:25:13
Script end

Main resources:

Total runtime0.1457 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.0625180.8125
Module start 'content' 0.00480.0060 768.875093.8203
Module end 'content' 0.01090.1347 862.6953524.3750
Script end 0.1456  1,387.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00322.1808200.0002
Check MTime0.00130.8888200.0001
Mysql Total
Database connection0.00050.370810.0005
Mysqli_queries0.100168.71651410.0007
Looping result0.00110.75871390.0000
Template Total0.134392.210.1343
Template load0.00100.692710.0010
Template processing0.133391.486110.1333
Override
Cache load0.00070.497810.0007
Sytem overhead
Fetch class attribute can translate value0.00090.613010.0009
XML
Image XML parsing0.00020.152410.0002
General
dbfile0.00916.2373200.0005
String conversion0.00000.003430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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