Drupal - Filter Nodes Retrieve by views module according to an array of categories -


i have array of taxonomies ids. created page using views module. want use contextual filtering retrieve nodes taxonomy references s id in array. example:

term_taxonomy_ids = array ( 135, 195, 253, 469, 987, 6975 ); 

i want retrieve nodes taxonomy references ids in array.

you need create relationship node taxonomy through taxonomy reference field have on node.

then create contextual filter of type "term id" , using relationship created.

in section "when filter value not available" select "provide default value" can past values in there or use php retrieve them.

the last thing do, under more @ bottom of page, select "allow multiple values"


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -