Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using CTools Version 7.x-1.x-dev
I wanted to make a page called My Files.
So I wanted to add a filter like so. ( http://i.imgur.com/x8HTW.jpg )
Before updating to the dev versions of both modules (views, ctools) I had four choices, but uid was not one of them. See attached ( only one choice now ).
Comment | File | Size | Author |
---|---|---|---|
screen.jpg | 28.29 KB | kentendo |
Comments
Comment #1
dawehnerIn general you have to use relationships now. I guess you have a content view, so you have to add a node: author relationship.
Once you have added it you have the filters/contextual filters availible.
Comment #2
kentendo CreditAttribution: kentendo commentedThanks Dereine. Very helpful. I wish I knew where to find all this info.
Comment #4
AniaMi CreditAttribution: AniaMi commentedI installed Profile2 module, so every user have Node Reference field and can have relationship with some content. How can I use user:uid in contextual filter - "User" is not visible at all, when I click "add" in contextual filters? How can I achieve this?
I want to have all content belonging to logged user (using this relationship - node reference)
I'm waiting for any help, because I have no idea how to do it.
Anna