Search DominoPower's 11,441 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
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.

Product availability and resources
For the PowerBoard discussion on the tip, "Applying stylesheet styles to Notes Rich Text fields on the Web," visit http://powerboards.zatz.com/cgi-bin/webx?50@@.ee6f67e.

For the PowerBoard discussion on the tip, "Overriding the style of Notes fields on the Web," visit http://powerboards.zatz.com/cgi-bin/webx?50@@.ee6f6c4.

Bulk reprints
Bulk reprints of this article (in quantities of 100 or more) are available for a fee from Reprint Services, a ZATZ business partner. Contact them at reprints@zatz.com or by calling 1-800-217-7874.

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.


« Previous  ·  1  ·  2  ·  3
Other articles you might like
Home > Tips & Techniques (102 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   A faster way to repair corrupted server files
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
Home > Internet Technologies > HTML and CSS (15 articles)
   Using a reusable code approach to HTML select option lists
   One reader's opinion on HTML mailing
   Keep lookin' good with Cascading Style Sheets
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- 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!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login