1

I need to achieve a block containing a dropdown list of vocabulary terms (called topics). Each topic describe one or many of the content articles. Each topic which is assigned to no articles should not be displayed. When selecting the topic from a dropdown list a page with assigned articles should be displayed.

It seems like achieving a dropdown list of terms from within a view is harder than expected.

Here my steps: I created a View with display page and exposed form in block: Yes I selected the term ID and term Name fields; then I expose the filters as "Operator: Is one of," and I selected all. It seems like nothings happens.

screenshot

2
  • what exactly is your expectation?
    – Aboodred1
    Commented May 24, 2013 at 16:37
  • You question is incomplete, what is your requirement?
    – Bala
    Commented May 24, 2013 at 18:00

1 Answer 1

2

There are several approaches:

A. Create a View out of Taxonomy Terms with a Page Display.

For fields add: term id, term name For filters: Term name (with widgets) and expose the filter

Choose then:

  • Dropdown,
  • Vocabulary (of your choice)
  • Expose this filter to visitors...,
  • 'Is one of' then select all terms from the vocabulary
  • Remove duplicates

In Views UI, on Advanced Tab

  • Exposed form in block: Yes
  • Exposed form style: Basic | Settings
  • Adjust settings to have autosubmit

B. Create a View out of Content and choose Taxonomy Terms among fields, similar to above.

C. Create a View with Block display from Taxonomy Terms and at Format Tab choose Jump Menu. If you need to overwrite the Jump Menu path you need to add a custom text field and create your desire path out of Replacement Patterns.

Than select the created custom text field from Jump Menu path settings

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.