I don't know if this is a Panels issue or a Views issue but since I'm trying to work with a View within Panels, I thought I'd start here. Apologies if this isn't the right place to post this.

What I'm trying to achieve is to display a list of previous events grouped by year. Through Views, I set up an argument based on the year of the event date to display the list of years (2010, 2009, etc.). This list displays just fine within Panels as a Views Pane but whenever I follow one of the links, the results are not within Panels and breaks the formatting. I'm sure I'm missing something very obvious but can't seem to get this to work properly.

Any help is appreciated. Thanks!

Bob

Comments

esmerel’s picture

What kind of view are you using? Just a simple archive-type view?

Bob Moyce’s picture

It's very similar to the default archive View. The Views Pane is set to filter out only the event content types with the argument set to display the Summary, sorted descending in List style.

Bob

Bob Moyce’s picture

Any help with this? I have a work around that has these pages revert to their original Block and Region layout but I'd like to have the site running completely in Panels. Any help or recommendations with this is appreciated. Thanks!

Bob

Bob Moyce’s picture

I was able to solve this problem on my own. I posted the solution I came up with over at Drupal Answers but thought I'd include it here as well in case anyone comes across this post. Hope it helps.

Within Views

  1. Create a Content Pane to filter out only the programs content type with the Argument set to display a 'Summary, sorted descending' based on the year of the program. This will be used to display just the years of the previous programs in a list and will be added to main Programs page.
  2. Create a Page to filter out only the programs content type with the same Arguments. Set the path of this page to 'programs/previous'. This will be used to view the actual results of the list created above.

Within Panels

  1. Create a new Page with the Path set to 'programs/previous/%view'. In the Arguments section, set it to Managed Page. In the Content section add the page created within Views and make sure the Send Arguments option is checked.
  2. Within Node Template (which controls the main layout of the entire site), add the Content Pane to the Programs page.

Therefore, when a visitor goes to the main Programs page ('/programs'), they will see a list of the previous programs in the right hand corner and clicking on each one will bring them to the appropriate page (such as '/programs/previous/2001') while keeping everything in Panels.

I'm a little confused as to how all works (for instance, how does the Content Pane inherit the '/programs/previous' path from the Page?) but am glad it works as planned. Hope this helps others and please don't hesitate to let me know if I could have achieved this in a simpler way!

Bob

Letharion’s picture

Status: Active » Fixed

Thanks for coming back with an answer :)

Status: Fixed » Closed (fixed)

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