I am trying to setup a Business Directory on the web using Domino and the $$ViewTemplate. I have struggled a bit with the HTML on the $$ViewTemplate, but can see the benefit. Are there any good examples that I could use or tutorials, as I have searched the web and the sandbox. I realize that my HTML skills are not strong, but I was hoping to wade through an example. I would prefer a more web look than the standard Domino look.Thanks for any suggestions
JA
Subject: $$ViewTemplate and HTML
There’s a number of ways to do it. The first way (and probably the easiest) is to use dojo. There’s quite a number of examples out there on the tinterweb.
If you want to carve it out yourself then you can have a number of columns in the view which are hidden from notes but display on the web. The first column should be Then the next would be your column, then the next would be etc. Your last column would be
Your view template would have
and
at the end. You could also use
instead of tables.
The third (and most interesting one) would be to simply have a page and use javascript to load the view using ReadViewEntries and parse the resulting xml (which is not very well structured imho) into xml using either an xslt stylesheet or javascript using the xml document object model. This way you can get your view asynchronously and doesn’t bugger about with the loading of the rest of the page. I use this method for multiple embedded views on forms.
Anyway, I could zap you a few examples over if you want. I don’t have anything published freely on teh web but there’s plenty of good stuff on things like openntf.org
good luck!
Adam.
Subject: RE: $$ViewTemplate and HTML
Thanks for the information. I found some help on openntf.org.I must spend some time identifying the one that best suits my application.
Thanks.