I've been doing some work with trying to display roles and style them for a social networking site, where roles are aligned with membership classes. Certain roles I want to be able to display, and style differently from others, and others I want to just not show up. This module was critical in being able to order roles, and do stuff via rules and elsewhere to make that all happen, so thanks!
As far as styling goes, I could have created classes using the role-id tokens provided (lightest in particular), but then they would have been numeric, which was not ideal from a maintainability standpoint. So, I modified the token code as per the attached patch to provide class names based on the role names. This works great for me, and is more readable than trying to use numbers.
Thanks for the great module. Would be great if this could make it into the next version.
Shawn
| Comment | File | Size | Author |
|---|---|---|---|
| role_weights.module.cbd-2010-08-27-new-tokens.patch | 2.35 KB | sdsheridan |
Comments
Comment #1
pfaocleComment #2
pfaocleShould also be added to 7.x-1.x
Comment #3
pfaocleAdded to 6.x-1.x-dev - thank you!
Comment #4
pfaocleAlso added to 7.x-1.x-dev.