I have my Drupal site running and I'm just fine tunning everything and I have a couple questions about views that I cant figure out.
First off is there a way to have views only show certain fields depending on a role? I have created an account for an editor to be able to add and edit certain content types on the site. When he clicks on Content in the top menu he can see all the content type even the ones he doesn't have access to modify. This would really help to not clutter the screen with the extra nodes he cant touch.
Next problem, I created a content type with 2 text areas, then using views I have created a block display to only show the first text area. I want to add a second display "Page" to show both text areas but when I add the second text field in views under "Page" I can only select Apply to all, which also adds it to my Block display. Is there a way to have multiple displays in the same view without having them contain all the same fields?
Comments
=-=
for the second issue: up at the top of screen when adding fields make sure the select list is set solely for the display in question. it defaults to 'All displays'
Thank you VM, it was right
Thank you VM, it was right there in front of my face!
=-=
I read the first issue again. You seem to be using fields and nodes interchangeably. please read and clarify
If the field permissions module is in use, have you checked the issue queue for the module in question for similar support requests?
VM, I am not using the field
VM, I am not using the field permissions module. I will try to explain again, I might be using the wrong terms.
Lets say I have 4 content types I created (type1, type2, type3, type4). I also created a role to allow editing of content type1 and type2 only. When the users under this role click on the "content" button (/admin/content) they can see all the content types but can only edit type1 and type2. I was wondering if there was a way, in views, to add a role filter to not show the type3 and type4 to the users that dont have editing access.
Under Views Basic settings
Under Views Basic settings there is an option Access Control, use this to achieve the desired result.
Ok i have more figured out
Ok i have more figured out but of course I'm still not where I want to be. Ill explain further...
The info you guys gave me works for most, which is a big help, but the problem is in Views the "system" display doesn't have the role option. I installed "administration views" which added the System display in views for admin/content but I cant seem to set roles for it.
Under Views Basic settings
Under Views Basic settings there is an option Access Control, button there called "roles" give it a click!
I cant seem to find what your
I cant seem to find what your talking about. Are you talking about in the actual views, in the page settings, above HEADER?
It's there believe me, not
It's there believe me, not 100% sure where it is in D7 but it is there!
Unfortunately its not under
Unfortunately its not under the system display. Page and block display have "access" settings where i can set role, but not system.
_
seems that is by design: #1697902: Access should be inherited from menu_item, not view access plugin.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.