1

For a slideshow with banners, i've added the fields overlay-text and link-to. The link-to is the URL you go, if you click on the banner. It's al done & working in Views & Views Slideshow.

The user adds a node and has to set the URL by hand in the field link-to. Sometimes however, the banner has to point to a different URL or node.

How can i set the URL of the node when the field link-to is empty?

1
  • Can't you rewrite the output in the view field options?
    – GwenM
    Feb 11, 2016 at 11:46

1 Answer 1

1

You can use No results behavior on the field. Include the path field and use the field path token.

screenshot

If there are no results, it picks the node URL.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.