How I Administer CodeStore

Ever wondered how I go about administering this site? No? Well, I'll tell you anyway. In the last version it was a bit of a pig, but I changed all that with release 6.

When I'm logged in I see an extra element in the page "header". As you can see from the shot below it's fairly obvious that I'm logged in (which is one of the things I needed) with the bright red banner stretching across the screen. This menu contains links to create all document types and to open all the important views. It also contains context sensitive document-level commands.

Getting this admin banner to appear is simple. Within the header subform is a nested subform. The formula for this computed subform is:

@If(isAdmin; "html_header_admin"; "")

The field called isAdmin is numeric and computed for display. If the user has the [Admin] role its value is 1, otherwise it's 0. You can read about this trick here. Most of the time nothing shows but when an Administrator (me) is logged in the admin subform loads.

In the admin subform is a list of commands and links. This is turned in to the menu you can see above by using the Ultimate Drop Down Menu — a nice cross-browser, accessible menu script, which is free for non-commercial use. To add a new view/form to the menu we just add a list item to the admin subform. Easy!

Want to see if for real? This template is for sale in return for Amazon Wishlist items. Contact me if you're interested and we can talk about a price.


    • avatar
    • jono
    • Thu 14 Apr 2005 05:34


  1. Boys and girls trust me, I bought the template from Jake and the price was well worth it.

    The code that Jake is talking about was one of the first things I learned how to use for a web site that I am working on.

    Thanks Jake,


    • avatar
    • Jake Howlett
    • Thu 14 Apr 2005 06:42

    Thanks Erksine. It's good to know it has helped.

  2. I am loving that DHTML menu, thanks for the link. I seem to spend for ever looking for decent menu's for the sites and apps we build.

    It even looks cool as well as being accessible which is even better.

    • avatar
    • Lee
    • Mon 18 Apr 2005 13:00

    For anyone who might be interested in 'Domino Best Practices', Jake's template is a wonderful example to learn from.

    For example, I learned a *lot* simply from Jake's use of a subform that he uses on every form. The little fields are all their for very good reasons, and discovering what they all are and why; well I'm most grateful.

    I haven't started any new dBs from scratch in awhile (I rarely have a need to do so), but when I do, first thing is thing is to study how Jake does it. And by the way, this template is not to compare to the samples that ship with Domino.

    And I have no interest in a publishing a blog, I just wanna be a better developer.

    • avatar
    • Sean
    • Thu 21 Apr 2005 13:22

    How'd you handle the 3 javascript files that need to be included in the <HEAD>with the menu? Did you add them to the $$HTMLHead field? If so, does that mean they load even when you don't need them?

    Thanks for another great tip!

    • avatar
    • Jake Howlett
    • Thu 21 Apr 2005 14:51

    Buy the template Sean and all will become clear ;o)

    • avatar
    • Julien
    • Sat 7 Jan 2006 07:37 AM

    Just a simple question :

    How do you display your lotusScript or formula source code in html ("@if" in blue, comment in green...) ?

    I find nothing to do that...


Your Comments


About This Page

Written by Jake Howlett on Thu 14 Apr 2005

Share This Page

# ( ) '


The most recent comments added:

Skip to the comments or add your own.

You can subscribe to an individual RSS feed of comments on this entry.

Let's Get Social

About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »


Here are the external links posted on the same day.

More links are available in the archive »

More Content