Your Development & Design Resource
SnTT: Domino Internet Site and Rules Documents Jumpstart - Now you have no excuse...
02/07/2008 01:27 PM by Chris Toohey
How many of you Domino Developers have even touched Internet Site documents? How many of you who mentally (and let's not hope physically) raised your hands have used Internet Site Rules?
... and don't feel bad if you didn't raise your hand. I'm going to bet that more than half of the people who actually read this site don't play around with them. And there's some pretty good reasons why:
- "I don't control my DNS, and the network admin is..."
- "I don't want to break current applications."
- "I don't have access in Domino to create them, and the Domino admin is..."
Now, while I can't help you with #3, I think we can pretty easily
excuses concerns #1 & #2.
Your computer maintains it's own built-in DNS, via a (for Windows-based OS users at least) hosts file - typically located in C:\WINDOWS\system32\dirvers\etc\hosts. This is the authoratative source that tells the OS that localhost points to 127.0.0.1.
If you edit that file - via Notepad or your preferred text editor - you can add a fake domain or even (if you don't prefer to use somefakedomain.org) a cname for your company domain. You'll even see that the first non-commented line (comments are marked by a #) is the 127.0.0.1=localhost setting!
So you can use this to create your fake domain or cname for your company domain. How this plays into Domino, you can setup an Internet Site document to play with and tackle those awesome-when-used-right Rules!
So have at it - don't worry about having to bug your network admin to create a DNS entry for you just so you can play around and learn something that can be truly beneficial!
I use, for example, substitution rules all of the time - and not only so you don't see the folder hierarchy or .nsf in this website's URL! I just recently updated a Domino-based application that required that I do all development out-of-template (long story). Instead of replacing this application with my new one, I simply took my time migrating and tweaking the data from the source (v1) database until I was ready to "go live" with the next release.
The cut-over was seemless, outside of the users seeing a new UI and the advanced/enhanced functionality and capabilities that they had just received training on! A simple Substitution Rule taking incoming requests for /v1db.nsf to translate directly to /applications/subdirectory2/v2db.nsf.
Internet Site Documents and Substitution Rules also really
come in handy when architecting a website. No longer do I need to create a
<base href> tag, unless I want to - I simply let the server
(and not the design, kinda like seperating content from UI huh?) tell you where
Oh, and about #3 - explain the control and architecture leverage benefits using these built-in options within Domino, and I have a feeling that you'll both want to start playing around with Internet Site and Rules documents!