(Drupal 8) View display nodes with taxonomy term found in URL -


using drupal 8

i have working setup problem when try access taxonomy term made of two words.

set up.

  • view : shows nodes of content type a
  • has relationship (required) field in content type stores taxonomy term (one or more terms need associated each content type)
  • has contextual filter (that uses previous relationship) taxonomy term url. filter gets default value raw value url path component: 2 , , has use path alias instead of internal because url has taxonomy term name. has specify validation criteria taxonomy term name transform dashes in url spaces in term name filter values fan-art can correctly matched taxonomy term fan art.

i have no problem taxonomy terms made of 1 word, it's ones made of 2 words giving me headache, ideas?

i gave trying understand why doesn't work , resorted using has taxonomy term id instead.

  • the url contains taxonomy term id only contextual filter needed. in raw value url taxonomy/term/[id] , needs done tell contextual filter provide default value type raw value url , path component 3. added specify validation criteria whenthe filter value available or default provided, of validator taxonomy term id , chose appropriate vocabulary.

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -