Stopping articles appearing on frontpage

Author Message

Tim Dickinson

Friday 24 February 2006 12:08:33 pm

Hi,

How can I make a template override for the full template so that the frontpage (node 2?) only displays its children which are folders and not articles?

Thanks,

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Thomas Nunninger

Friday 24 February 2006 1:20:11 pm

Hi,

have a look at http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_override_conditions/node_view_tpl. You can match against the node. Then you just need to change the children fetch in the (copied) folder template to only fetch articles.

Have a nice day

Thomas

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 18:41:29
Script start
Timing: Jan 18 2025 18:41:29
Module start 'layout'
Timing: Jan 18 2025 18:41:29
Module start 'content'
Timing: Jan 18 2025 18:41:30
Module end 'content'
Timing: Jan 18 2025 18:41:30
Script end

Main resources:

Total runtime0.6648 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0469152.6406
Module start 'layout' 0.00540.0025 740.687539.4766
Module start 'content' 0.00790.6555 780.1641526.8047
Module end 'content' 0.66340.0014 1,306.96888.1250
Script end 0.6648  1,315.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4748160.0002
Check MTime0.00130.1991160.0001
Mysql Total
Database connection0.00070.102310.0007
Mysqli_queries0.620493.3119540.0115
Looping result0.00060.0879520.0000
Template Total0.632195.120.3161
Template load0.00230.349520.0012
Template processing0.629894.726820.3149
Template load and register function0.00050.069410.0005
states
state_id_array0.00080.125410.0008
state_identifier_array0.00090.141420.0005
Override
Cache load0.00180.2720140.0001
Sytem overhead
Fetch class attribute can translate value0.00050.081420.0003
Fetch class attribute name0.00120.177440.0003
XML
Image XML parsing0.00100.146520.0005
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00110.1637220.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs