Change panel so "More" directs to a page

Events happening in the community are now at Drupal community events on www.drupal.org.
ray field's picture

I shouldn't think I'd have to resort to PHP coding to do this (I sure hope I don't) -- but I don't know how to do this:

I've got a page with panels containing blocks, each block is a list of teasers to articles, and each has a "More" link at the bottom. The way it works now is if the user clicks on "More," the entire page refreshes and the next page of the block/view. What I would like is for the user to click on the "More" link and be taken to THE PAGE.

For example, the top menu page is Sports. There are four panels/blocks, About Baseball, About Football, About Hockey, About Basketball. Each block has 5 items with "More" -- I want it so that if the user clicks on "More," s/he will be taken to /baseball, /football, rather than to Sports with the second page of the block view displaying.

Comments

Why cant you use a "custom

Draven_Caine's picture

Why cant you use a "custom link field in your view, code your own url and take the user wherever your url points?

I have done the same thing with IM's and node titles.

Views content panes

itangalo's picture

If you enable the Views content pane module you get a new, nicer display type for Views ("content pane"). If you use that, there is a setting "allow override", that in turn allows "path override". If you check that option, you can set what path should be treated as the "main" path of the view – which should be the one the view links to from the more link.

So:

  • Enable Views content panes (found in CTools project, already present on your site)
  • Add a content pane display to your view(s)
  • Open the "allow override" setting and check the "path override" option
  • Open the panel, embed the content pane, and override the path to whatever you with the path to be

I hope this helps!
//Johan Falk
**
Check out NodeOne's Drupal Learning Library! 250+ screencasts and exercises, for Drupal introduction, advanced configuration, and coding. Creative Commons license!

Panels

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week