1

I want want to create page for vocabulary. I mean not vocabulary term, but vocabulary name.

mysite.com/myvocab

rather than

mysite.com/myvocab/term

That page should also have possibility to display text (how can I add text field to vocabulary and not vocab term?)

Thanks!

  • what contents you need to be displayed in mysite.com/myvocab... List of nodes referred this vocabulary? or Terms inside it?.. Pls mention it in your question – Pravin Ajaaz Dec 2 '14 at 8:02
  • I have set of vocabularies. On each vocabulary page I need to display list of nodes referred to vocabulary, list of terms and some text. – Thelambofgoat Dec 2 '14 at 8:04
  • First, make a view for showing your terms. Secondly, set the value of formatter in the field setting of the views design page, as "Plain Text" – Ehsan Dec 2 '14 at 8:05
  • You can even make a page for view! – Ehsan Dec 2 '14 at 8:05
0

There is two simple way to do it I think :

  1. Use Vocabulary module which gives you the taxonomy/vid page.
  2. Or Use views to create your page. Create a taxonomy type view and add Taxonomy vocabulary: Vocabulary ID or Taxonomy vocabulary: Machine Name as argument.
  3. If you want to display the nodes related to vocabulary then I think you need to use Views Field View with 2nd option.
  • Thanks. I think you are right about views. And how can I add text to each vocabulary? – Thelambofgoat Dec 2 '14 at 8:07
  • I think Taxonomy vocabulary: Description can do that. – Sumit Madan Dec 2 '14 at 8:08
  • I marked your answer as best cause I think it's full, though I at current moment complete step 3 (I created page view mysite/vocabulary/% with terms for the vocabulary but I don't understand how to embed nodes related to vocabulary view) – Thelambofgoat Dec 2 '14 at 9:26
  • 1
    I must create Context Filter vocabulary machine name and then create View with terms belonging to vocabulary machine name and embed it into main view, right? – Thelambofgoat Dec 2 '14 at 9:28
  • After enabling the Views Field View you will be able to see the Global Views field in views field list. You can add the another view in which contextual filter of tid is added. – Sumit Madan Dec 2 '14 at 9:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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