Closed (fixed)
Project:
Front Page
Version:
6.x-1.2
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Nov 2007 at 21:57 UTC
Updated:
24 Nov 2009 at 08:38 UTC
http://drupal.org/project/filter_default module has faced the same challenge of picking up one right configuration for a user with multiple roles. The solution would fit perfectly into the respective part of Front Page - I bet it's almost cut&paste! (easy for me to say ;-)
Comments
Comment #1
dublin drupaller commentedthanks for the heads up about that, Andrabr. Will have a looksee.
Dub
Comment #2
bobgeier commentedI don't know about filter, but there's similar functionality in the 6.x branch of FCKEditor.
In the meantime, does anyone have a work-around to order the roles?
Comment #3
dublin drupaller commentedhi Bob,
I'll have a look at that FCKEditor functionality when I get a chance, but, a quick workaround for the moment would be to mark the custom roles as "same as authenticated users" use a PHP snippet in the text area settings for authenticated users to present different front page content to different users.
Here's an example:
hope that helps
Dub
Comment #4
dublin drupaller commentedhere's a slightly more advanced snippet which might be easier to manage....it dynamically loads the main body of another node into the front page for you.
Comment #5
bobgeier commentedAppreciate the workaround, Dublin. I might be able to get the second snippet to work for me with some tweaking. In this particular app I'm using the module not for splash pages but rather to present different front page content to different roles (members vs. non-members, youth members vs. adult members, etc.). The site is pretty complex and the users not very sophisticated. Altering front page and navigation to suit the likely tasks/information needs of each user type is a real plus.
Of course at the moment I took the temporary expedient of blowing away all my roles and re-ordering them to make the module work. ;0
Comment #6
dublin drupaller commentedglad to be able to help
In this particular app I'm using the module not for splash pages but rather to present different front page content to different roles
that's precisely what the module and the snippet above is intended fori.e. manage the front page content....you would tend to use a front-page.tpl.php to implement a different layout. there are more switches on the node_view function that allows you to switch off links etc. which may prove useful.
Of course at the moment I took the temporary expedient of blowing away all my roles and re-ordering them to make the module work. ;0
Be careful with that..I'm not certain about this, but, if you switch role names around like that...the guitarists may have the permissions of a drummer now because, afaik, $user->roles are keyed by a number rather than by the name you assign to a role. in other words, a drummers permission to edit drum nodes might be role type "2" rather than role type "drummer".
Recommend you logout and login as another role to check that.....
Comment #7
dublin drupaller commented