1

I have a Basic Page node and on it I have View block that displays another content type.

The View takes a Contextual Filter Taxonomy term: Term ID with the following settings:

When the filter value is NOT available:
Provide default value - Raw value from URL;Path component: 2;Use path alias

When the filter value IS available or a default is provided:
Specify validation criteria - Validator: Taxonomy Term;Filter value type: Term name converted to Term ID

So if my node has a path of /foo and my term name is bar then if I browse to /foo/bar I'd want to see my Basic Page node with my View filtered by the term bar.

When I test this in the preview widget the view works as expected; only returning the data that is associated with the term bar. When I actually browse to /foo/bar I receive a Page Not Found error.

Any suggestions?

  • On the node page do you have term id in url? – arpitr Sep 29 '13 at 7:14
  • Yes. example.com/foo would be the node, bar being the term name. When I test foo/bar in the preview widget; it works. On the node view with bar also in the url; I receive the 404 error. – Allan Bendy Sep 30 '13 at 12:48
  • Is this a taxonomy term page, or is this a node that has a term reference field? If so, you shouldn't be using Raw Value from URL, you should use the Taxonomy Terms on Node relationship. What is your end goal for this View block? – kyletaylored Sep 30 '13 at 15:11
  • The page is a node. The view is displayed as a block on that node page. The view is displaying another content type. My goal is to be able to filter the view with an argument in the path alias URL (not internal URL.) – Allan Bendy Sep 30 '13 at 15:24
  • 1
    Yes, this is a landing page that has both copy in the body field plus call out fields (node references) that display user selected content in the side bar. Several other sections have been implemented this way and it makes sense to stay consistent. – Allan Bendy Oct 1 '13 at 3:35

Your Answer

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

Browse other questions tagged or ask your own question.