This functionality is easy to do with the stock theme implementation, unless
you need pretty pictures in the service registry.
Say your services separated into staff, student, faculty and alumni you would
designate themes with the same names.
Your Staff.properties file:
logo.image=images/staff.png
help.url=helpfiles/staff.htm
nav.code=<ul><li><a href="link1">some nav</a></li><li><a href="link2">some
nav</a></li></ul>
Your other theme property files would be similar but with the correct values
for that theme.
Your view.jsp:
<spring:theme code="logo.image" var="logo" text="/images/default.htm" />
<spring:theme code="help.url" var="helpurl" text="/helpfiles/generichelp.htm" />
<spring:theme code="nav.code" var="nav" text="" />
...
<img src="{logo}" />
...
<a href="{helpurl" >Login Help</a>
<!-- Nav code embedded from property file -->
{nav}
The default theme functionality is fairly powerful, unless you have a need for
an entirely different layout - and I have have an example solution for that as
well.
-Andrew
On Feb 7, 2012, at 3:05 PM, William G. Thompson, Jr. wrote:
> Folks,
>
> Unicon is collaborating with Columbia University on a Services
> Registry extension for Login Screen UI. The gist is that Services can
> specify some elements of the CAS Login UI such as:
>
> * Logo that appears on the login screen
> * Help URL and text
> * Visibility of campus navigation links
>
> Currently thinking about how best to extend the Services Registry with
> ad-hoc attribtues.
> Would welcome comments, thoughts, and general collaboration.
>
> Best,
> Bill
>
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-dev