I'm working on a new site in D6, and in each article it displays a header box showing the pub date and author, with a footer box showing the taxonomy and printer-friendly and send-to-friend links. I'm trying to use a view to aggregate the articles created with specific tags to show in departmental home pages. This works fine, except for the fact that the view will also add the header and footer metadata boxes in those pages as well. It will break off the top of the article as a teaser, and add a 'Read More' link, so I figure there is some sort of intelligence as to how it displays articles based on where they show up, but I've not broken down the core code to find it. Is there another or better way to collect these articles, or some way to prevent them from being gummed up with the header and footer boxes when displayed in this way?

For instance, I have a primary nav menu button set up to go to "category/public/recent-updates" and it will list out just the titles and teasers for associated articles, no meta data boxes. That's the type of display I'd like to get within a regular node. Perhaps there is a way to do that, but I haven't found it?

Any help is appreciated, thanks.

Comments

nevets’s picture

Have you looked at node.tpl.php, it controls the look of the node for both teasers and full nodes and can be customized. The variable $teaser is available in node.tpl.php and can be used to conditional do something/

Tafa’s picture

if you want to get rid of the meta-data displayed at the bottom of your node, you may want to disable this functionality in the theme section of your drupal website, as in admin/settings/themes. Go into global configuration to find the content type to disable.
T

markabur’s picture

In your view you can switch the "row style" from Node to Fields, then you'll be able to select just the fields you want it to output (e.g. just Title and Body).

taquil’s picture

Markabur wins. That was a very useful tip, and I was able to make it all work the way I need it. Thanks.