How to create views url path with argument system variable?
for example i have a content views but i just want to show the result of the views content in page url when the user access the url with custom argument such as: www.mydomain.com/myviewsurl/[custom system variable] so when user only access www.mydomain.com/myviewsurl it has no result and the custom system variable can be change for several time so it will be www.mydomain.com/myviewsurl/ABCDEF or www.mydomain.com/myviewsurl/QWERTY etc.

thanks

Comments

imunklovarian created an issue. See original summary.

damienmckenna’s picture

Category: Plan » Support request

I'm honestly not sure. The question is where the string comes from? If you had a Contextual Filter which could handle it, there's an option in the Contextual Filter dialog that lets you return a 404 if the argument isn't present or doesn't validate.

brankoc’s picture

@imunklovarian could you expand a little on this? Where are ABCDEF and QWERTY coming from? Is there a specific problem you are trying to solve?

swapna_shrivastava’s picture

If I am getting you question right then solution to your issue could be follows :
Create the views with path www.mydomain.com/myviewsurl/% and then add a contextual filter for that content id.
Hope this helps.

renatog’s picture

Status: Active » Reviewed & tested by the community

Yes, I understood #4 makes sense

@imunklovarian if you need something different this feel free to reopen and please let us know with more details as #2 and #3 asked

Thank you so much

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.