Friday, June 20, 2008

6 methods to control what and how your content appears in search engines

I've had some trouble recently with Yahoo trying to index links in a view that contains agent-generated documents. This gives the Domino-error, "Special database object cannot be located". All errors are sent to my mailbox (an error-folder). I try to remove as many error-sources as possible, to avoid having to read hundreds of mails, or even worse, deleting all error-messages because there are too many.

Found a nice piece on avoiding indexing.

Added this to the head content of $$ViewTemplateDefault
<meta name="robots" content="noindex" />
<meta name="robots" content="nofollow" />

I could filter/hide the view, but it's nice to have around for debugging purposes, and it doesn't contain confidential information.

I'm lazy :)

Wednesday, June 18, 2008

Quick reminder - new LS methods in Notes 8

I re-read a slide from LS-08, and (re-)discovered a couple of new (and undocumented) LS methods in Notes 8. The methods should also be available in Java.

NotesDatabase.CreateDocumentCollection -> Empty NotesDocumentCollection

NotesView.CreateViewEntryCollection -> Empty NotesViewEntryCollection

NotesView.GetColumnValues( columnIndex ) -> LS @DbColumn without 64k limit

Test it for yourself (with the debugger running):

Sub Initialize
Dim s As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim col As NotesDocumentCollection
Dim eCol As NotesViewEntryCollection
Dim colValues As Variant

Set db = s.CurrentDatabase
Set view = db.GetView( "someViewInTheDatabase" )

Set col = db.CreateDocumentCollection
Set eCol = view.CreateViewEntryCollection

colValues = view.GetColumnValues( 2 ) 'a valid colIndex
End Sub


Friday, June 13, 2008

Slick integration between FCKeditor and Lotus Domino

Update 16.08.08: According to a commenter, Sinisa, the notes.ini modification is not needed (tested on Domino R7), so even less requirements.. :)

Before you read on. The integration requires you to set DominoDisableFileUploadChecks=1 in notes.ini on the Domino Server.

I found no satisfying integration-examples that included upload-support for FCKeditor, so I decided to try to make the integration myself. As far as I've tested, you can upload whatever you want, only limited by settings in FCK and Domino restrictions.

Flash animation of the integration in action. Shows upload of an image and upload of a flash game.

Although it was a bit hard to hack around Domino restrictions regarding uploading files, I finally found out how to make it work.

All that was needed was a bit of try, fail, retry, repeat, a simple upload-form and a little bit of Javascript.

Demo application


>> Download

The interesting bits are the fckconfig.js page, the demo form, and the fckupload form. Read Ferdy's article to understand how you can upload files to Domino without using a Domino generated File Upload Control.

Requirements for the demoapp:
fckeditor in [Notes/Domino-path]\data\domino\html\js\fckeditor
If you're not running the demo on localhost, DominoDisableFileUploadChecks=1 in notes.ini on the server.

Tested with FCKeditor 2.6.1 in FF2.0, IE7(Vista) and Opera 9.5 (go try it out).