0

I have this issue with contextual filter. I have set the filter so it would get an ID of an article and based on that ID, it would show the name of the author. The problem is, it doesnt work with URL aliases. For example, when I put the ID of the node like example.com/node/22, it finds the author. But when I try to put the URL alias like example.com/clanky/something-something-something, it doesnt show anything. Any idea how can I solve this? Thank you for any reply.

1 Answer 1

0

Use Content ID from URL instead of Raw value from URL

enter image description here

8
  • I did that before, it still doesnt work for me unfortunately.
    – Adam Šulc
    Aug 9, 2018 at 8:37
  • Hard to believe, should've worked...
    – No Sssweat
    Aug 9, 2018 at 8:40
  • I added few relationships to get the content ID, do you think that the relationships might be the problem?
    – Adam Šulc
    Aug 9, 2018 at 8:41
  • @AdamŠulc maybe, you could try removing them for testing purposes and add content id as a field. The view should display the id number.
    – No Sssweat
    Aug 9, 2018 at 8:46
  • 1
    strip your site's css with a browser tool like web developer and see if you can see it, to make sure there is no js or css file that's hidding it.
    – No Sssweat
    Aug 9, 2018 at 9:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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