I really hope this isn't a duplicate, but there's so many issues that mention some of these terms, it's difficult to decide. I'm quietly confident with both both Panels and Views, but not very experienced in using them as yet, so I'm hoping the following scenario problem is a "stoopid user" issue rather than something that can't be done as it doesn't seem to be anything out of the ordinary.
Problem Summary I want the More link in a View block, to link to a Panel page that includes an associated View content pane in one of the panes, not to the a View page. There doesn't seem to be an option in Views or Panels that allows me to do this.
I'll expand on that...
Page 1 is a Panel Page that contains two panes, a) a Content Pane created in Views (containing a list of latest news item teasers) and b) another pane. The important thing here is that it needs to be a Panel Page, not a View Page. The Panel Page has a path of /news/latest
Page 2 represents the majority of the other pages on my site. It uses Panels and one of the panes is a sidebar. In the sidebar is a block that lists the titles of the latest news items. (It's actually a Quickblock, but I don't think that's relevant.) I want a "More" link at the bottom of that block that links to the Panel Page, Page 1.
However, More Links can only link to the "Link display", which is one of the view's Page Views (you won't get the option to select a Link display if you don't have at least two Page Views for your view and you can only select one of your page views, not enter your own path). I need the More Link in the block in the sidebar of Page 2 to link to Page 1, /news/latest, which is the Panel Page that holds that View content pane, rather than to a Page View page.
Perhaps I shouldn't be using Content Panes to create Page 1, but even if it was just a Page View in that pane, I still would not be able to link to a Panel Page path from a View More Link for the same reason.
Confused and a little bit of help would be appreciated.
Comments
Comment #1
dunx commentedWill just add than I'm using Views 6.x-2.16 (not 3 that was released a few days ago). In the release notes; "reported by dvcs11: Allow to use read more links of page displays", which might be relevant.
Comment #2
Letharion commentedRegarding your comment "shouldn't be using Content Panes", I can tell you that I use _exclusively_ content panes, and when I held a Views/Panels training a while back, that's what I told the audience as well.
Views being a very complicated module, I'm not entirely sure I even understand which existing "more link" you speak of, but it sounds to me like what you want to accomplish is outside of what can be "out of the box".
However, it sounds like you could easily do this with a "Global: Custom text", just write "Read more" in it, and "Re-write result" -> "Output this field as a link" -> /whatever/path/you/want
A general suggestion when opening issues, is to try and be more concise. :)
Comment #3
dunx commentedI tried to provide a concise summary and then more detail. Sorry if it came over as a barrage of info.
The "More link" is standard Views functionality. It provides a link at the bottom of a block to another Page View. Trouble is I have that Page View wrapped in a Panel Page, so it doesn't exist and you can't change the link to anything other than a Page View.
I'll give the custom text idea a go though, it just strikes me as being a bit hard-coded if I have many views. Many thanks for getting back though.
There's not much difference between Content Panes and including a Page Views in a pane as I understand it. It's really just a way for the developer to allow a non-developer administrator to have access to specific functions for the panel's configuration. I think.
Comment #5
dunx commentedJust a follow up. The Global text idea was nonsense as that would be on every row, rather than once in the block like the standard "More link" field provided out of the box by Views.
Comment #6
jenlamptonYes, what you actually want to do is add your own more link in the footer of the view. That you can also override by display.
Comment #7
quicksketchThis is correctly answered in http://groups.drupal.org/node/204923. You can change the "More link" URL by enabling "Path override" within the "Allow settings" option in the view configuration. Then when you add the view as a pane in your pane, you can change the URL of the view.
In my situation I had a view and panel at the path /news. But I wanted the more link to go to /news/archive. Changing the view URL in the panel pane settings correctly made it so that my /news view used /news/archive as the more link (which I had configured to show all the time, since I limite the news page to exactly 10 items all the time).
Comment #8
dunx commentedI'll just follow up on this with a bit of a recipe here in case the solution is of some help to others.
I have nodes that are locations.
I have two content pane views (both user type views, based on flags... but that's not important to the recipe):
Both views are displayed as part of two panel pages:
View 1 has "More link: Yes" (Create more link + always display more link + "See all visitors...").
In the view's Pane settings, under Allow settings, I have "Path override" checked.
Panel page 1 for the 9 users panel, under Settings I have "Override path" set to "node/%node:nid/users"
So on my main node page for the location I have a panel showing 9 users who have visited the location and within that same panel a link "See all visitors..." that goes to /node/[nid]/users/[nid]
Not quite sure where that second [nid] comes from, but it all still seems to work.
In fact, because I have subpath_alias installed (and pathauto) the link is actually to /location/[location_name]/users/[nid], which is even nicer.