Hi Guys,

i am trying to build a view that will have 2 elements. A page that will list in a glossary mode node titles (A-Z) and below the page an attachment that will list the latest 10 nodes. What i want is to hide the attachment when a user selects a certain letter from the glossary page. How is this possible? Up to now i have only managed to create the page and the attachment but i cannot figure out how to hide the attachment on user letter selection. Can anybody help? Thanks.

Comments

Fr0s7’s picture

Here is what I would do:

Set up 2 content types:

  • Glossary - A generic container for Glossary Terms
  • Glossary Term - The actual content your users are searching for.

The node reference field should be in the child content type, so it should be in the Glossary Term, pointing to the Glossary.

Create 2 views:

  • A list of all Glossary Terms. This view has 2 displays:
    • An attachment display that has the A-Z letters for navigation, and it is attached back to the default display.
    • A node content display that attaches the list back to the parent Glossary page.

    Make sure you are NOT using AJAX to refresh the list, since this will cause the user to never leave the main Glossary page when a letter is selected.

  • The 10 latest Glossary Terms. This view has has a 'node content' display that attaches the 10 latest Glossary Terms back to the parent Glossary page.

This way, the user sees the Glossary page first. It has the list of nodes with the A-Z navigation, and a second list of the 10 latest nodes. When the user selects anything (and thereby leaves the Glossary page), the "10 latest" view no longer appears.

Crell’s picture

Category: task » support
Status: Active » Fixed
Issue tags: -arguments, -views 2, -attachment

Status: Fixed » Closed (fixed)

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