Allowing an anonymous user to choose portal theme
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Allowing an anonymous user to choose portal theme




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Allowing an anonymous user to choose portal theme  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-15-07 12:30 PM

Hi,

How can I allow an anonymous user to select the portal theme that will be ap
plied during his navigation? I want the theme to be applied only to the anon
ymous user who selected it.





[ Post a follow-up to this message ]



    Re: Allowing an anonymous user to choose portal theme  
Oliver Then


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-15-07 12:30 PM

Portal does not support "per user theme". You can assign themes to
pages, but you cannot specify different themes for different users.

Oliver





[ Post a follow-up to this message ]



    Re: Allowing an anonymous user to choose portal theme  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-15-07 12:30 PM

Ok, thank you for your answer.





[ Post a follow-up to this message ]



    Re: Allowing an anonymous user to choose portal theme  
Michael Harris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-16-07 12:30 AM

While Portal does not support different themes per user, it is possible
to write a single theme that changes its behavior based upon the user or
perhaps cookies in the user's browser.

The simplest thing you could do is provide different CSS stylesheets and
instead of the user selecting a different theme, what they actually
select is a different CSS stylesheet.

You could also alter the markup based upon user or cookies, although
that can get complicated depending upon what your requirements are.





[ Post a follow-up to this message ]



    Re: Allowing an anonymous user to choose portal theme  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-18-07 12:25 PM

Cookies may be an option for what I want to do.

Would it be possible to a portlet to read cookies set by the portal theme?

I would need to read cookies from a JSP Component in WCM Content Viewer port
let.





[ Post a follow-up to this message ]



    Re: Allowing an anonymous user to choose portal theme  
Michael Harris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-19-07 06:19 AM

jleno@mail.sogeti-transiciel.com wrote:[vbcol=seagreen]
> Cookies may be an option for what I want to do.
>
> Would it be possible to a portlet to read cookies set by the portal theme?
>
> I would need to read cookies from a JSP Component in WCM Content Viewer portlet.[/
vbcol]

I don't know... you'll have to try a test.  Many of the Portlet APIs
where you get a value and pass in a key (such as request, session, etc.
attributes) will first check for the namespace encoded version of the
key and if a value isn't found, it will look for the key directly.  You
might be able to use this to get a value set in the theme.  I know that
it is not possible to go the other way around.  i.e. You cannot set a
value in the portlet that is not namespace encoded and therefore would
be accessible by the theme.

Now, if you can use JavaScript in the portlet, you can get and set all
the cookies you want.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:04 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register