Im trying to set up a Contextual filter in drupal views based on the URL.
The contextual filter is operating with a text field that sets the node alias.
I have it working with "RAW value from URL" based on the position (parentpage/childpage/grandchild-page), but the position could change (only parents and child for example), so do i need to use the "PHP code", or is there a better way?
What i want to happen:
"If last section of page url, (grandchild-page), matches field set in contextual filter, then true (show fields).