Home > Domino Tips > Developer > HTML > Profile forms for CSS sheets
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

HTML

Profile forms for CSS sheets


Jack Ward
03.29.2005
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Why make more work for yourself? Why spend your time messing with forms to reference your CSS sheets? Use the Domino Profile form to design a killer Web site that you have creative control over, a site that anyone in the office, with administrative rights, can modify if needed.

I've been using the standard Notes Profile form, instead of the standard CSS Sheets, to set fields and reference fields. You can create a Profile form that uses all the CSS functions of controlling color, font, type size and other styles. You can build in the capability to make decisions to change your pages so you don't have to slip into a page to change the design. With Notes Profile fields, you can have HTML changes that refresh instantly.

Follow these steps to use your Profile form to the fullest:

  1. Plan what elements you want to have easily modified as content in your Domino pages (i.e., colors for background, tables, fonts, font sizes, pictures, etc.)

  2. Create a Profile Form in Notes.

  3. Create a field for each element you want to be able to control.
    For example: I created a combo-box field in the Profile form of one of my Web databases so I could control the font. I limited the choices to three fonts -- Arial, Courier and Tahoma -- then in the Input Translation event I put the formula:
    @Trim(@SetProfileField("Setup"; 
    "FType"; FType))
    

    This identifies the Profile form as named "Setup" and then setting the current field "FType" as a profile field FType.

  4. Continue with as many fields as you like. Consider the color codes you could use, i.e., #11111, etc., for color schemes, or pick your own series of theme codes before hand.

  5. Save your Profile form.

  6. In your page or form call your Profile field inline with your code. One of the best ways to do this is to call it via "Computed Text." For example, to call your above Profile field within your code, you could:
    <font face="COMPUTEDTEXT">
    The COMPUTEDTEXT would be a computed
     text value that equals this:
    @GetProfileField("Setup"; "FType")
    

    When Domino reads the code, it reads the profile field value and Presto! in goes your value as if it were always there.

  7. Repeat in the HTML code everywhere and you've got dynamic code based on content. You won't have to rely on a designer to go in to change it regularly. You can always hide the Profile form from anyone you don't want to be able to modify the code. And you control what it's called. (Use something other than "setup" to keep it inconspicuous.)

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip exchange by member Jack Ward. Please let others know how useful it is via the rating scale below. Do you have a useful Notes/Domino tip or code to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
HTML
Create a dynamic fluid image gallery with Lotus Notes views
Write HTML and JavaScript in Notes view rows and columns on the Web
Open Lotus Notes documents in Microsoft Word without coding
Trap an attachment path via the Domino file upload control field
A bevy of Notes/Domino development tips
Styling Lotus Domino Web fields
How to convert Microsoft Word or Microsoft Excel documents to HTML
An easier way to view multiple columns on the Web
How to print a form in landscape format automatically
Tip contest winner: Hide view column while being able to sort it

HTML for Lotus Notes Domino
Create a dynamic fluid image gallery with Lotus Notes views
Write HTML and JavaScript in Notes view rows and columns on the Web
Open Lotus Notes documents in Microsoft Word without coding
Top 10 Lotus Notes/Domino coding and development tips of 2008
Trap an attachment path via the Domino file upload control field
Mimic Lotus Notes Domino application functionality on the Web
Top 10 Lotus Notes Domino programming and development tips of 2007
Creating a link on an HTML page to a Microsoft Word attachment in a Lotus Notes database
A bevy of Notes/Domino development tips
Top 10 Notes/Domino developer tips of 2006

Web Development for Lotus Notes Domino
Trap JavaScript runtime errors in Domino Web apps
Write HTML and JavaScript in Notes view rows and columns on the Web
JavaScript detects Web browser type and version in Notes/Domino 8.0.2
Top 10 Lotus Notes/Domino coding and development tips of 2008
Top 10 issues when developing Lotus Notes Domino Internet applications
Top 10 Lotus Notes Domino programming and development tips of 2007
Programmatically copy and hide attachments in Lotus Notes rich-text fields
Programmatically edit a rich-text field table from within the Lotus Notes client
Troubleshooting Lotus Notes Domino tabbed table problems
How to validate Lotus Notes forms on a Domino server without losing entered data

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts