Closed (fixed)
Project:
Domain
Version:
6.x-2.0-rc9
Component:
- Domain Views
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2009 at 21:43 UTC
Updated:
5 Nov 2009 at 06:20 UTC
Hi
I'd like to set up the following view : list all the nodes that a user can access as domain editor, the user being the view argument. This view will span over all the domains that the user can access.
I've managed to get the cross domain view using 'special request pages'.
However I don't know how to restrict the view to the only nodes that the user can access as domain editor. When I set up a relationship 'Domain Editor', the views UI doesn't allow to use this relationship with the views argument nor fields.
Thanks for your help
Laurent
Comments
Comment #1
agentrickardDon't use 'special request pages' as that will negate the access controls entirely and give you an unfiltered list of nodes.
Did you try the provided filter?
Comment #2
agentrickardYou also get this already through the Domain Content module.
Comment #3
agence web coheractio commentedThanks for your quick answers. I've tried the different filters and relationships provided with the module. No luck.
Here is my use case: Users can be editor in several domains. The default domain is their 'extranet' domain. On the user account page of the 'extranet' domain, I'd like to show each user the list of nodes he/she can access in the other domains (i.e. where they are editor).
So this need to be a special page request. On the other hand, Domain content module list all pages of a domain whatever the editor acesses the user has.
Any possibility to achieve this with Views ? Alternatively, I can write my own query and display in a block (this is what I've done to list the domains a user can edit). In that case, is there some built-in functions to list all nodes a user can access as domain editor ?
Thanks
Laurent
Comment #4
agentrickardThere is not a built-in function for listing all nodes for a user, just all domains a user is assigned to.
Looks like you need a new Views filter and argument for a user's domains. Pass it a username, get an array of domains back to apply to the query.
Typically, I don't use Views for administrative functions for just this reason. It is often easier to write the query by hand.
Comment #5
agence web coheractio commented