Drupal 5.3

Basically, I would like to know how to make a node's link show a view. Seem simple? Well it isn't. Here is what I mean:

Say I make a view (page): www.localhost.com/business/bpd

Say I make a node with the URL: www.localhost.com/business/bpd

If Joe Shmoe goes to www.localhost.com/business/bpd, it shows the node body. I want it to show the view. Apparantly the view is being overriden; I want the VIEW to BE the overrider.

Yes, it is easy to link to a view in a menu.

But how do I make it so the Node will show its teaser, but when clicked on it will take the user to the view?

ALL COMMENTS AND IDEAS ARE WELCOME! THANKS!!!

Comments

catch’s picture

Priority: Critical » Minor
Status: Active » Postponed (maintainer needs more info)

Having a node and a view with the same path is bad practice in nearly all cases, it should be quite easy to theme your teaser in a node-type.tpl.php file to link to the view from there.

You also need to give more information about whether the view accepts arguments etc. - is it just one node or is this something you want to reproduce accross your whole site?

bensnyder’s picture

The problem I am having has to do with my overall Drupal technique. See http://drupal.org/node/193609 to read another post I submitted that may help you understand better.

-Thanks

catch’s picture

Status: Postponed (maintainer needs more info) » Fixed

OK I'm marking this as fixed then. I'd suggest reading the handbook documentation for theming (and views for that matter).

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.