Page 1 of 1

Editing Report Templates

Posted: Sun Aug 03, 2008 12:26 pm
by Booboo
Now that I have worked out how to email WorkPad reports (yipee) I'd like to customise a report template.

What is the most appropriate / user freindly application to edit report templates with?

I've had a look at the online help files but not sure that they are written for dummies. Could you give me a few tips to get going.

Re: Editing Report Templates

Posted: Sun Aug 03, 2008 1:22 pm
by support
Booboo wrote:What is the most appropriate / user freindly application to edit report templates with?

Notepad works for me :-) (or any other plain-text editor). You might be able to use an HTML editor but you need to make sure it's not going to remove the Awasu-specific stuff from the files.

Also, the way report templates are organized changed in 2.3.4 and they are no longer self-contained in a single file. If you just want to change the appearance of a report, it can be done through CSS. Otherwise, the best way would be to examine how the existing templates are set up and then either create a new copy of one of them, or aggregate them into a single file and change that.

Posted: Mon Aug 04, 2008 12:45 am
by Booboo
Ok. Time to back the truck up and ask some stupid questions.

I note that templates comprise three elements:

1) Text file (.css)
2) Referenced graphics
3) Unidentified file type (.template)

I've had a look at the text file (.CSS) and can see that I could change some of the parameters like font size and what graphics are referenced. But I am unsure about the unidentified file type (.template). What does it do and what application do I use to open it.

Posted: Mon Aug 04, 2008 4:09 am
by support
Notepad :-) It's just a text file that looks like an HTML file but has some extra stuff in it that controls how feed items get inserted, etc. It works the same as PHP or ASP, if you've ever done any of that.

The old template files used to be self-contained in that they contained everything in a single file. The new ones are spread over several files and the .TEMPLATE files now simply contain a bunch of <tt>{%INCLUDE%}</tt> statements that bring everything together.

Posted: Mon Aug 04, 2008 5:09 am
by Booboo
Thanks I will have a play and see if I can get it to work for me.