0

I need to create a view filtered by a term name that has spaces converted to dashes and non-alpha-numeric characters removed. A non-alpha-numeric is required to match the existing/old site path structure and remove forward slashes in the term names that are causing the view term name contextual filter to fail.

For example, a node may have a term reference with the term name of Americas/Caribbean. The URL arg passed to the view would be americas-caribbean. There does not seem to be a way to use the term name context filter with sanitized term name arg.

I've spent days and got very close, but my filter view breaks if the term name contains forward slashes. I suspect other characters in the term name may cause it to fail also.

  • What is the relationship between the term name and the URL on your site? – Patrick Kenny Oct 15 '17 at 7:53
  • I'm not sure what you mean. I'm creating the URL's to the View in question from another View using the last part of the path as the context filter for the View in question. – quantumized Oct 15 '17 at 15:14

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.