I have an application that I am building that I would like to have two distinct “look and feels”. One of the feels is the one ui theme that comes with domino that is applied to the whole database. However I have some xpages that I want to exclude from that theme as they will be front end forms that non company members will be seeing.
Long story short, is there a way to exclude certain xpages from theme styling?
As I found out from comments on a similar post on my blog about dynamically changing themes, you can use:context.setSessionProperty(“xsp.theme”, newID)
This will allow you to change the theme to something else. You would probably need to run this on your relevant XPages, resetting the theme back for the others.
where would I put this code? I put it on the beforepageload as well as the beforerenderresponse.
The problem I am still having is when the page is loaded for the first time it still has the theme associated with it. Once I reload it the theme is gone like I want.
Is there a way to do this when the page is first loaded. PS this page is not coming from another xpage but an email, so this cannot be set on another xpage unfortunately.