I have a view which shows particular content type(advertisement). My content type has a field "show only on page" which is a text type. Here I will give the page where that particular content should be shown.
I have created a block which is shown on /blog which is showing all content of advertisement. But I want the ads to show only in the block if the url matches.
For eg. If an adv is added say "abc" with "show only on page" as "/blog/europe/*" then in the block "abc" should be shown only when person visits a url say /blog/europe/france etc.
Now I have created a view but I don't know how to pass the "show only on page" field as an argument in the view.
Basically I would like something like below to happen:
if "page url" contains "show only on field" then select the content
else don't select.
Is this type of filter possible in drupal views? I am hoping views argument may save my day.