On Jan 27, 2009, at 12:01 AM, Vikas Agrawal Engg wrote:
Hi
I want to present option on my Portal developed with Jetspeed 2.1.3
to change Page Theme dynamically whenever required.
I fetch data through web services from server.
My case is if some user is logged in on Portal then he must be shown
a dropdown for changing the Page Theme of the Portal.
Please help urgently
Take a look at the customizer, it has all the code required to do so,
see layout.vm for starters..
Or if you prefer an ajax api, there is the "updatepage" api, try
(assuming you are running on localhost, and your authenticated user
has privilege to update a page), you can call from javascript:
http://localhost:8080/jetspeed/ajaxapi/Events.psml?action=updatepage&method=info&layout-decorator=blueocean