2. Task Description
You first will explore the Themes used in the discussion template and after
that you will create a new Theme for use with your application.
3. Detailed Steps
1. Create a new database based on the discussion
2. Set the access control of the database to
allow for anonymous access (otherwise you can't preview stuff without a
3. Open the database in the browser and check
out the functionality, both in the Notes client and the browser.
4. Open the database in Designer and change
the theme in the database properties:
5. Open a theme in the Designer and have a look
6. Create a Theme for your own application (scrapbook
or profiles) and add this code:
7. Set your application to use your new theme.
8. Preview in browser
4. The Result
5. Things To Explore
Themes can extend other themes. There can be server wide themes or database
bee seen in the Discussion template themes).
You also can add code to switch a theme on the fly:
var curID = context.getThemeId();
var newID = (curID == "webstandard")
(Doesn't work in the Beta 2 build)
6. Further Readings
Domino Designer help
Re: Tutorial: Introduction to XPages - Exercise 18
I am doing this exercise on R9 and changing a Theme via Application properties does nothing . BUT I did find in the Application Configuration/XSP Properties/Source this value xsp.theme=oneuiv2_1_purple.theme (I changed from blue to purple and IT WORKED)
Tutorial: Introduction to XPages - Exercise 18
If you are using 8.5.1, go to the XPages tab to change the theme.
Check the source, it might be between comment tags
In step 4, on the second image the checkbox "Enable..." is not checked. For me the picklist was not accessible until the box is checked. Even then, changing this option did not effect the change in the application. Only when I switched to the 'Xpages' view in Designer and changed the application theme and selected to override on Web was the visual display effected. What might be wrong that caused the tutorial method to not work for me?
Suggestions to improve this article (which I like)
Good article but leaves me with some questions.
A. In step 3.6 it says, "Create a Theme for your own application (scrapbook or profiles)". How do I create my own theme?
B. What does "(scrapbook or profiles)" mean?
C. The code fragment that follows is repeated in the screen fragment image. I think the image is clear enough especially if you show the "before" theme code in another screen fragment image and circle the code to be changed. I also would like to see what the code was before to match with the screen fragment image of the "before" form.
D. The whole article format could benefit from a bit more white space between elements.
Thanks for writing it.