End-user customizable CSS on the Web

Design CSS to allow users to select their own styles.

1 USER 1 STYLE, 100 USERS 100 STYLE!

In the code section, you'll find step-by-step description of my solution.


Create a Page that contains the class (example myStyle.css) like this:

 H1 { font-family: Comic Sans MS; font-size: 12pt; text-decoration: normal; color: midnightblue; text-align:Left ; letter-spacing: 0em; } .Table { font-family: Comic Sans MS; font-size: 8pt; text-decoration: normal; color: midnightblue; margin:0px; padding:1px; background-color:skyblue; border-width: thin; border-style: solid; border-color: cornflowerblue; text-align:Left ; letter-spacing: 0em; } ( continue with other class..)

...where the values are not static, but like this:

 @Subset(@DbLookup("";"";"vCfgCSS";"ActiveStyle";"tFontColor_tab");1)

In the view vCFGCSS, select the ActiveStyle document FOR THE CURRENT USER!. In fact, any user can create the documents CSSstyle with the AUTHOR and READERS fields and choose what is 'ActiveStyle'. Document CSSStyle contains all the fields for the Page myStyle.CSS (example tFontColor_tab="midnightblue").

In all the forms, in the HTML head content: "<link href="/" + DBPath + "/myStyle.css" rel="stylesheet" type="text/css">" (DBPath is a field with: @ReplaceSubstring(@Subset(@DbName;-1);"\";"/") )

Result: 1 USER 1 STYLE, 100 USER 100 STYLE!

This was last published in August 2001

Dig Deeper on Domino Resources - Part 4

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close