[Building Sakai] Distinguishing Roles in Site Tabs

Charles Severance csev at umich.edu
Tue Aug 13 14:09:33 PDT 2013


I would be careful - this sounds very costly.   Everything the portal shows is carefully cached.   Looking at every realm for every site - would be costly.

/Chuck

On Aug 13, 2013, at 8:27 AM, Steve Swinsburg <steve.swinsburg at gmail.com> wrote:

> 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
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130813/a4ab00b9/attachment.html 


More information about the sakai-dev mailing list