[Building Sakai] Distinguishing Roles in Site Tabs

Steve Swinsburg steve.swinsburg at gmail.com
Tue Aug 13 05:27:08 PDT 2013


Hi,

You could easily modify the portal to do this, though it will require a
couple of lines of code. When the list of sites are rendered, run an
additional check to see what role the current user has in that site (if its
not already looked up) and then set scope a variable with the css class.
Then in the VM template, emit the CSS class on the tab. Less than 10 lines
of code I imagine.

cheers,
Steve


On Tue, Aug 13, 2013 at 10:05 PM, Gabriel Slomka <
gabriel.slomka at puc-campinas.edu.br> wrote:

> Hello there. ****
>
> ** **
>
> I created a role called “Director” Who can see all sites, pretty much as
> na admin but He cannot change it. He can be also a Instructor for some
> classes. Wish to know if its possible to distinguish the classes in the
> gateway tabs for different roles, for instance the Director could see
> classes with a different CSS class so i can dye in red classes hes
> director, and blue classes hes the Instructor. Something like that.****
>
> ** **
>
>   Does anyone knows if its possible ?****
>
> ** **
>
>   Thanks alot for the attention !****
>
> ** **
>
>   Best Regards, Gabriel****
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130813/ca82ed4a/attachment.html 


More information about the sakai-dev mailing list