Hello all,
I'm trying to create a view of a certain content type that would only be visible to persons indicated with User reference fields within CCK-created content.
The only thing that's lacking is the ability to use the User reference fields as Filters in the views module. They just don't show up in the list of filter fields. Neither do Node Reference fields, for that matter. Why wouldn't all fields be available to be used as filters?
Also, are the filters always using AND logic? Is there a way to use AND and/or OR logic when there's more than one filter? Would also be REALLY nice to have more flexible filter logic, more free-form expressions, so I could enter something like
UserReference.player = CurrentUser OR UserReference.gm = CurrentUser
as a filter evaluation. This would be immensely flexible.
Thanks,
Steel Rat
Comments
could this be done at the theming level?
If you created a custom .tpl.php file for that CCK node type, could you use some php to act as a 'kill switch' by checking if the requesting user is one of the referenced users? Serve them alternate content if their uid is not referenced in the node.
One drawback that comes to mind with this method is that it could prevent them from viewing it but if they have access to edit those node types it may not stop a non-referenced user from editing that node if they have sufficient privileges.
Eric Lawrence
Developer/UX Designer
http://squaretone.com
I have no idea if that can
I have no idea if that can be done. I think the ultimate way of solving this is to have a Named Access module that would be well-integrated with the Drupal core. But, since no one I know of is creating such a thing, and I don't have the skills, I'm resolved to the fact that Drupal can't do what I need.
This is just one part of it too, there are other things I need it to be able to do that can't currently be done, to my knowledge.
Thanks for the reply,
Steel Rat
Drupal Site: RPGMapShare.com