The Views module comes packaged with a view called "Glossary". This view uses an attachment to display indexes of all nodes organized by the first letter of each node title. For example, when the letter 'T' is clicked, all the nodes that start with the letter 'T' are displayed below the letter indexes using AJAX--which is where I think my problem ultimately lies.

When I add a View context to use for the panels display, the View works properly as described above within the View preview only. However, when the View Context is embedded within a panel region on a panel page, the AJAX component falls apart. That is, the letter index appears at the top of the view but when I click on a letter, it brings me back to the home page rather than displaying the nodes that start with that letter using AJAX.

I am not sure if this is a bug or just an ignorant misuse of panels. I'm hoping it's the latter.

Comments

Letharion’s picture

Status: Active » Postponed (maintainer needs more info)

When you say "View Context", is that a "Views context display"? Normally when you want to display a View in a Panel, you add a "Content pane display".

I don't think I've ever used the glossary, so this could be me not understanding, but is there a reason for adding a context display, instead of a content pane?

jpcurley25’s picture

When you say "View Context", is that a "Views context display"?

Yes

is there a reason for adding a context display, instead of a content pane?

The main reason that I am using Views context displays is to be able to wrap the entire panel up as an AJAX UI so that an action in one view within the panel can affect the behavior of another view within the panel.

In this case with the glossary view, I want my list of nodes to display so that when the user clicks on one of the nodes in the glossary view, certain information about that node will display in another view without a page refresh.

Hopefully I've answered your questions, thanks for your help!

esmerel’s picture

Status: Postponed (maintainer needs more info) » Active
alemadlei’s picture

Issue summary: View changes

I just experienced this issue.

The way I corrected is by making sure that the pane used the Panel path instead.

Pane Settings > Use Panel path, set it to yes.

After this change, ajax functionality was ok.

Hopefully this helps anyone in the future.

gottaknow’s picture

alemadlei, I tried setting the glossary views to panel path yes and ajax yes. I need to do this for the glossary view and it breaks the glossary. Any ideas?

alemadlei’s picture

@gottaknow, how does it break glossary?

RKopacz’s picture

I am seeing this behavior. I tried setting the views content pane path to yes as described in #4. It did not help. I can click on any letter in the glossary and it does not display the resulting page. All I see is the entries for A.

Here is the page with the views content pane in the panel, which is not working:

http://eirephilatelicassoc.org/abcs-irish-philately

and here is a standard views page for the same view, which is:

http://eirephilatelicassoc.org/abcs

Other thoughts on how to correct this?

Related issue:

https://www.drupal.org/node/2864075