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 first published in August 2001

Dig deeper on Domino Resources - Part 4

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchWinIT

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

SearchVirtualDataCentre.co.uk

Close