Hi,
we've also had the functional request serving different layouts to services.
So we've implemented our own layout-implemenation (with the same
jsp-file-names as the default one). This implementation acts as a
dispatcher which analyzes the spring-theme-param and then includes the
specific layout for the current service.
Setting the theme for services is done via the standard
services-management-interface which meets exactly our functional request.
For setting the theme in the logout-screen we've had to write our own
implementation of a spring-theme-resolver. Which only means that
services have to call the cas-logout-page with the theme-param and their
specific theme-value.
- Jonathan Strampp
Am 09.02.2012 14:59, schrieb Tillinghast, Andrew P.:
> 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:themecode="logo.image"var="logo"text="/images/default.htm"/>
> <spring:themecode="help.url"var="helpurl"text="/helpfiles/generichelp.htm"/>
>
> <spring:themecode="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]
>> <mailto:[email protected]> as: [email protected]
>> <mailto:[email protected]>
>> To unsubscribe, change settings or access archives, see
>> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>
> --
> You are currently subscribed [email protected]
> <mailto:[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