Anonymous
Domino 2.0 Rich Internet Applications with IBM Lotus Notes/Domino
You are here: Today » Developing a blog template in Domino
« Using semantic CSS naming
How to make an RSS feed in Domino »

Developing a blog template in Domino

So the exciting excercise begins

I started my Domino 6.5 test server, opened up my Notes client and created a new blank database on the server. I then opened my Notes designer.

I had a nice icon lying around, so I changed the icon first.
I also changed some basic settings of the database:

The Blog Entry form

Then, as fast as I could, I created a simple form and called it 'BlogEntry'. On it, three text fields to fill in: Subject, Description and Content. I will display documents with this form as XHTML and not as Notes documents, and this rules out the use of Notes rich text. Since Body is typically the name for a Notes rich text field, also in e-mails, I choose the name Content for my content instead. I will have to handcode HTML in there at first, until I put in a web richt text editor.

I wanted to preserve the original created date when I have to copy and paste a document into another database, and I also want to use the posted date if the original document was a mail. Therefor, I created the field PostedDate, computed when composed:

@If(@IsAvailable(PostedDate); PostedDate; @Created)

To make sure the last updated date is only changed when the document is saved, and not every time the content is altered by agents, I created the field LastUpdated:

@If(@IsDocBeingSaved; @Now; LastUpdated)

Finally, I created the AuthorName field to make sure that always the original author is preserved:

@Subset(@Trim(From:AuthorName:@Name([CN]; @UserName)); 1)

The All by form view

Any decent Notes database should have this: a very simple view, first column categorized, field: Form, second column sorted, field: Subject

So now I can start blogging! I don't have a web interface yet, and no views at all... but at least I can create blog entries in Notes to blog about developing a blog in Domino.

Star rating

100%

Comments

To add a comment, log in or register as new user. It's free and safe.