DWA 8.5 Customisation

I am looking to remove the Full/Lite button and the DOLS buttons from the top right action bar in DWA 8.5. I have managed to do this rather crudely by going into the I_JSBase script and the Modepanel_SkinComponent_Lite and removing the code that renders both the buttons and the table with the separators underneath them. Is there a better way of doing this?

Also, I can see no easy way of changing the IBM.Lotus.iNotes logo at the top left as it seems to come from the composite gif basicicons.gif which I don’t want to touch.

Subject: Answers

Editing the Modepanel_SkinComponent_Lite component is the correct way of customizing the mode panel. You didn’t need to do anything with the JavaScript in I_JSBase, however,

The logo can be customized using the subform Custom_Banner_Lite

You can add a new image file for your logo to the Resources / Files section of the Forms85 file. Then, in Custom_Banner_Lite, refer to your new file instead of transparent.gif. If you do that, you should set the width and height attributes to the size of your bitmap, and remove the xoffset and yoffset attributes.

You can also replace the tag in Custom_Banner_Lite with your own code. But doing so will eliminate the “Ctrl-click to display the About box” functionality.

Alternately, you can replace the entire contents of the tag with your own HTML. But do not remove the table> tag. This is needed for proper placement of the logo on the page.

Subject: More Info…

Thanks Eric. I would ideally like to leave the IBM logo at the top but put the customer’s logo at the bottom left (underneath the inbox, folders etc). Also, when I removed the actions in the Modepanel, the table underneath was still displayed as if it was expecting all 5 items to be there which is why I edited the JSbase file. In this file, I noticed that there was a piece of code which appeared to be working out how many items should be in the table and adjusting it accordingly but it was not obvious where it was getting it’s information from which is why I just edited the JSBase code to only show three cells in the table.

Subject: Edit the skin

If you want to add another logo to the page, you need to edit the h_ListFolder skin. Skins are stored in the Forms85 file as Files under the Resources section. There are separate skin files for each browser type:

h_ShimmerSkin-h_ListFolder - IE

h_ShimmerSkin_Gecko-h_ListFolder - Firefox

h_ShimmerSkin_Safari-h_ListFolder - Safari

Note that CSS styles are used to position the different components on the page. For more information, see this wiki article:

http://www-10.lotus.com/ldd/dominowiki.nsf/dx/inotes-lite-framework

Subject: 852 skins?

i have upgraded to 852, and trying to modify intes layout…

but my forms85.nsf ACL has:

default - reader

anonymous - reader

localdomainserve - manager

So i can check forms and subforms names only making a new application copy…

In froms85x.nsf i cant find shimmerskin elements

looking wiki and redbooks but still confusing…it look like i miss some basic information.

i read:

In earlier releases, there were separate stylesheet files for each browser type. In 8.5.1, the separate browser-specific stylesheet files have been consolidated into one. For example, the following stylesheets have been consolidated into f_ShimmerSkin-h_StyleSheetView:

f_ShimmerSkin-h_StyleSheetView
f_ShimmerSkin_Gecko-h_StyleSheetView
f_ShimmerSkin_Safari-h_StyleSheetView

Where is f_ShimmerSkin-h_StyleSheetView?

please help!!

Marco

Subject: in Resources

The stylesheets are all the in Resources / Files section of the Forms85 file.

Subject: Found!

But I have some more questions:

If i need to modify css i have to edit the css file in forms85.nsf or have to add a css file with the same name in forms85_x.nsf?

I’d like to customize background on a “per user” or “per databse name” base, some user need to work with more mailboxes and it will be less confusing if backgroud color is different.

i made a new dwa.proprieties in forms85_x.nsf’s resources with just some lines copyed from the original:

Top most area

D_GRADIENT_TOPTOOLBAR=[0, 53, 87, 135, 90, 70, 112, 170, 100, 59, 96, 148]

D_GRADIENT_TOPTOOLBAR_BH=[0, 127, 175, 237, 100, 98, 148, 214]

D_BORDER_TOPTOOLBAR_BH=#306090

D_GRADIENT_TOPTOOLBAR_IE=COLOR=‘red’ color2=‘red’ COLORS=‘10% red’

D_GRADIENT_TOPTOOLBAR_IE_BH=COLOR=‘red’

And the background change into the selected color… is it possible to add a condition in this way?

if (username=“xxxx”) then

D_GRADIENT_TOPTOOLBAR_IE=COLOR=‘red’ color2=‘red’ COLORS=‘10% red’

D_GRADIENT_TOPTOOLBAR_IE_BH=COLOR=‘red’

else

D_GRADIENT_TOPTOOLBAR_IE=COLOR=‘black’ color2=‘black’ COLORS=‘10% black’

D_GRADIENT_TOPTOOLBAR_IE_BH=COLOR=‘black’

endif

when the inotes interface take the dwa.properties changes?

when i modify one color (let say from red to black) i don’t understand how to make inotes reflects the changes…

  • if i restart http, refresh the browser, and still i have the old color;

  • if i make “tell http inotes flushforms”, refres the broser and still have old color

sometime i refresh browser and i got the new color!!!

Than’s again

Marco

Subject: More answers

To modify CSS styles, you can add them to the Custom_CSS subform in Forms85_x. Any styles in there will override the styles in the main stylesheets.

Unfortunately, there is no “if - then - else” capability in the dwa.properties file. If you want different properties/styles for different users, you can create separate extension forms files and then point to the one you want for each user in the user’s mail file. For more information, see this wiki article:

http://www-10.lotus.com/ldd/dominowiki.nsf/dx/lotus-inotes-how-to-enable-a-custom-forms-database

To see your updated properties in dwa.properties file, you need to restart the server. Flushing the database cache does not reload the properties file.

Subject: That’s great!!

yes following article’s indication i made a custom copy of from85.nsf and, in the test environment, i can make different background for different mailboxes!!

The article was talking to customize the forms85 and not the forms85_x. the customization in forms85_x override the basic user interface form.

Or is possible to make a customized copy of forms85_x in the same way?

Subject: Yes.

In the icon note of the Forms85.nsf, there is an item called $FormsTemplateExtFile, which points to the Forms85_x.nsf file. You could use a similar agent to change it in the the Forms85.nsf.

(I updated the wiki article to add that information).

So you could have a set up like this:

User group A:

mailA.ntf → Forms85a.nsf → Forms85_xA.nsf

User group B:

mailB.ntf → Forms85B.nsf → Forms85_xB.nsf

Subject: it seem better… but

it seem better to have the forms85_x duplicated!

Tryed this way.

  1. reset the $FormsTemplateFile to iNotes\notes85.nsf

  2. made a copy of forms85_x and modified some colors

  3. create the new $FormsTemplateExtFile (this field was not present in my icon doc… old template???)

    one maildb with forms85_x and another with forms85_z

  4. restart domino server

:frowning: the inotes interfaces has the same color

Subject: Wrong database

The $FormsTemplateExtFile is in the icon note of the Forms85.nsf database. NOT the mail database. So if you want to have two different Forms_x databases, you’ll need two separate Forms85 databases to point to them.

Subject: where did you find all of this infos?

Ok now it’s clear what to do… but it will be better , for all of us, to access the source of this infos…

a full reference manual from Lotus will be apreciated :slight_smile:

in the while thank’s again!