(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 storestaxonomy term
(one or more terms need associated each content type) - has
contextual filter
(that uses previous relationship) taxonomy term url. filter gets default valueraw value url
path component: 2
, , hasuse path alias
instead of internal because url has taxonomy term name. hasspecify 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
typeraw value url
, path component3
. addedspecify validation criteria
whenthe filter value available or default provided, of validatortaxonomy term id
, chose appropriate vocabulary.
Comments
Post a Comment