Jump to content


Photo

Additional Information on Roles Page in Admin


  • Please log in to reply
3 replies to this topic

#1 renobird

renobird

    Sr. Member

  • Members
  • PipPipPipPip
  • 354 posts
  • 228

  • LocationGainesville, Florida

Posted 22 August 2012 - 02:46 PM

I'm using a 3rd party authentication method (Shibboleth) with Processwire.

Some roles in Processwire are granted/removed based on a attribute Shibboleth passes back after the user authenticates. However, there are also some "local" roles that are granted in Processwire directly. Since there are going to be a lot of roles, I need to a way to keep track of where they are set (ie: Shibboleth attribute, or in the PW admin).

I added an additional field to the "roles" template called "set_by". What I can't figure out is how to show the "set_by" value next to the role name when viewing /processwire/access/roles

See screenshot for an example.

Screen Shot 2012-08-22 at 3.42.27 PM.png

Any help would be much appreciated.

#2 slkwrm

slkwrm

    Sr. Member

  • Members
  • PipPipPipPip
  • 248 posts
  • 66

Posted 22 August 2012 - 05:56 PM

You can find it in the Roles module options. You need a field "What fields should be displayed in the page listing?", it's hard to overlook it. There you can choose your field. For some reason it shows all available fields, not only those you added to your Role template. Not sure it should be this way, got to ask Ryan about it.

#3 renobird

renobird

    Sr. Member

  • Members
  • PipPipPipPip
  • 354 posts
  • 228

  • LocationGainesville, Florida

Posted 22 August 2012 - 06:52 PM

Thanks slkwrm,

I forgot to look in the Roles Module options *slaps forehead*.
...and of course, it's just that easy.

Much appreciated.

#4 slkwrm

slkwrm

    Sr. Member

  • Members
  • PipPipPipPip
  • 248 posts
  • 66

Posted 22 August 2012 - 07:19 PM

You're welcome :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users