|
|
|
|
|
|
|
|
|
|
|
|
|
|
Changing Rich Text font styles on the Web (continued)
Alert reader Scott Bockelman pointed out on the DominoPower PowerBoards that instead of putting the code for the HTML Head section shown above in a central location and then retrieving it via formula, you could actually include these style definitions in a stylesheet file that you then reference in the HTML Head section of a form. I actually do a combination of the two, using a formula in the HTML Head section of each of my forms that looks up the HTML Head code from a central database that gives the path for the stylesheet to use.
For example, I put code such as the following in the HTML Head section of my forms:
lookup := @DbLookup ( "Notes" : "NoCache" ; "" : "codelibrary.nsf" ; "LookupCodeView" ; "HTML Head" ; 2 );
@If ( @IsError ( lookup ) ; "" ; lookup )
|
The following code is then returned to the form:
"<LINK REL=STYLESHEET TYPE="text/css" HREF="/codelibrary.nsf/LookupCodeView/stylesheet.css/$FILE/stylesheet.css">"
|
This enables me to manage the HTML Head code for each form/document in a central location. I can also add additional styles for specific forms if I need to by inserting them between opening and closing style tags "<STYLE>ADDITIONAL CODE</STYLE>" in the same HTML Head section of the form.
Conclusion Writing tips for DominoPower every week is certainly rewarding and never boring. I hope those of you who are current subscribers have enjoyed them and found them useful. If you're not already signed up to receive the free weekly DominoPower tip, by all means go to http://www.dominopower.com and sign up today.
Mick Moignard has been working and traveling with Lotus Notes since Release 2.0 in 1991. Mick is a DominoPower Senior Technical Editor and a Principal CLP with Unipart Expert Practices, a Lotus Advanced Partner in the UK. If you want to discuss anything to do with this article, or indeed anything else to do with Notes and Domino, contact Mick at Mick_Moignard@unipart.co.uk. Unipart Expert Practices will also happily discuss any opportunities you may have with any Notes and Domino application development or infrastructure projects you need help with. Unipart Expert Practices can be found at http://www.unipartep.com.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done.
Native to Lotus Domino. The User Experience unseen for Lotus Domino.
Do more with less. Really.
See the possibilities Docova unleashes for Lotus Domino. |
-- Advertisement --
Struggling with exporting Notes data to spreadsheets? No More!
Try IntelliPRINT, The world's leading Reporting, Dashboards, and Analysis solution for Notes & Domino
- Don't spend unproductive time maintaining different versions of the same spreadsheet
- Preserve data integrity and security in multi-user environments
- Create reports in minutes INSIDE Notes
- Get freedom from iterative report requests, deliver self-serve capabilities
Experience Reporting, Dashboards, and Analysis INSIDE Notes.
Try IntelliPRINT NOW! |
|
|
|
|
|
|
|
|
|
|