Thursday, May 22, 2008

Creating Project Templates in Klok

One of the common things I have been asked about Klok is how to create or modify the project templates you see when you create a new project. The templates are completely configurable however, I hadn't actually documented it anywhere. So, if you want to create your own templates here's how you do it.
  1. Open the file C:\Program Files\Klok\ProjectTemplates.xml (This is for XP or Vista. I'm not sure where this ends up on a mac...If you do, post a comment)

  2. Copy and paste one of the existing <template>...</template> tags and edit the names of the projects. Notice that the projects can be nested as deeply as you want.

  3. Restart Klok and your new template will show up in the dropdown when you create a new project.

Let me know if you have any problems with it.


18 comments:

Josh Van Horsen said...

On a Mac its:

Macintosh HD > Applications > Klok

ctrl+click on Klok and select "Show Package Contents"

Once in the Klok package it is: Contents > Resources > ProjectTemplates.xml

Phew... it actually takes longer getting to the file then it takes to edit it and add a new template.

The Buttars Family said...

Awesome. I love Klok. It's gotta be the best thing out there right now. Sweet interface too. I'm building a template for Drupal and this article helped a lot.

Phillip Calvin said...

For me (running OS X Tiger), the klok.dat file is located about where it should be, which is under my home folder:
/Users/[your username]/Library/Preferences/Klok.[some GUID]/Local Store/klok.dat

This is not quite correct. It should be under Library/Application Support/Klok, but perhaps this is an AIR problem.

Anonymous said...

Linux: /opt/Klok/ProjectTemplates.xml

Jeff said...

Awesome, awesome program -- but is it mean for me to note that in the ProjectTemplates.xml file, you spell "Stationery" wrong? :-) "Stationary" describes an unmoving bicycle; "stationery" is the paper.

Thanks for such a great program! (Not being sarcastic, I promise.)


Jeff

Anonymous said...

What happens if I defined a template, and then create project based on that template, and then modify the template at a later date? What happens to all the data?

Anonymous said...

Neat. I've been looking for a nice timekeeping app for a while.

I can only see three features that I'd be keen on so far:

- could project templates have default colours for the project nodes?

- can we have a 'nothing' or 'stop' option on the drop down list of recently used projects

- can we have a right click on the list of projects on the left to bring up a context menu - including the option to start that timer.

Those ideas aside, it's a nice little program.

Anonymous said...

A feature request, could you assign a cost for each Project, then in the properties page and the reports could let you know where you stand with an hourly rate displayed, then you can see how far jobs are blowing out or how much under budget you are.

Anonymous said...

maybe im a bit dumb, but where to find the prefs?

Bella said...

I have to say is that "I LOVE KLOK." I have just started using 1.5 so I am curious to see how it compares to your previous design. Is there other templates that come with it? Even if there isn't the concept is amazing and you did a great job designing. xoxo lifesaver.

How Bowers said...

What's UserTemplates.xml for? I edited that file and now none of the templates show up.

How Bowers said...

I discovered my error -- I didn't notice that the sample entry in UserTemplates.xml has the project tag self-closed.

Unknown said...

First time user of Klok:

I am trying to copy a UserTemplates.xml from a windows XP install to a MAC OS 10.5.7 install. Klok ver1.0 on MAC on WXP is 1.5.1 RC1.1

I can see the template in the WXP install but when I copy it to ctrl-click on Klok, "Show Package Contents", Contents>Resources, It does not show up when I run Klok again.

I copied the Klok.dat file to /Users/[your username]/Library/Preferences/Klok.[some GUID]/Local Store

After this I can see the template I added but as a Project already. I still cannot use it as a template.

Any Assistance is greatly appreciated.

Anonymous said...

Hi, This is a great application. Thank you! When making a template is there a way to have a default estimate time?

Thank you again,

Rich

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Unknown said...

I am trying to cut and paste the xml file for the project template. It allows me to copy but not paste as directed. Is there something I am doing wrong?

ri said...

On a Mac, with finder active, chose:
Go > Go to Folder (Cmd+Shift G)

enter the file path:
"/Applications/Klok.app/Contents/Resources/"

A bit quicker than navigating manually.