Make Toolbar Latest News only display articles - no comments

Author Message

Tim Dickinson

Friday 14 April 2006 10:10:23 am

Hi everyone,

Having just worked out how to let anyone (anonymous users) add comments to articles, I now need some way to only have articles (no comments) showing up in the Latest News section of the toolbar. Anyone got any ideas?

I'm sure this is quite easy to do and I'm just missing a trick somewhere.

Any help much appreciated and Happy Easter!

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

Sascha Frinken

Saturday 15 April 2006 12:48:32 am

First you need to find the template that is in charge for the latest news.

In this case it is: design/standard/templates/toolbar/full/node_list.tpl

Then you create an override template for it. There are a few different methods to do this. In this example I just saved the template to design/plain/override/templates/toolbar/full/ as plain is my sitedesign.

In this template you have to look for "fetch( content, tree,..."

Change

  ...
  class_filter_type, exclude,
  class_filter_array, array( 'folder' ),
  ...

to:

  ...
  class_filter_type, exclude,
  class_filter_array, array( 'folder', 'comment' ),
  ...

HTH

Sascha

Tim Dickinson

Saturday 15 April 2006 7:29:53 am

Amazing - thankyou!

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

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