i have a
view block - that shows 3 last images of my content type
sidebar image(block is displayed on every page). Content type has two fields -
path - url path alias, for example 'content/example'.
By default i need to show this 3 images that has been created without
path(its not mandatory field) - i did this its works fine, but now when user create new node of
sidebar image with path alias
'content/example' - i need to show this picture in my view instead of one of the three default on this path.
The path can be - either view or node or taxonomy term.
I tried to create contextual filter with
path field and provide default value, but kinda stuck here because its a path alias.
What i think of is to parse URL get the path, and then query to DB - and check is my path is equal to image path so i can change the query of view.