Using alternative results template

How do I get Sailwave to recognise an alternative results template.

I need one for Langstone SC results and another one for Laser 2000
Class Association results, to save me time when creating new web
pages for the sites using appropriate backgrounds and headings.

I've created a new one for Langstone and this is now my default, with
the original Sailwave one renamed in the same directory. I also tried
copying a Results.htm to My Templates.

Jenny

Hi,

How do I get Sailwave to recognise an alternative results template.<

A word of warning. Sailwave *always* zaps the Templates and Styles folders
with the Sailwave supplied templates/styles on a new version install. If
you create your own templates and styles - make a copy of the template/style
you want to base yours on and save them into the MyTemplates or My Styles
sub-folders - Sailwave never touches these.

So, create your templates in the MyTemplates folder and they'll then
automatically show up in the Publish menu.

There are some magic lines in the template that tell Sailwave what/where to
display the template in the publish menu, e.g.

`template.setmenurank(1)`
`template.setmenutext('&Results...')`
`template.setmenumsg('Publish series summary and/or race details')`

line 1. where it appears in the menu list: 1,2,3,4 etc
line 2. the text to display in the menu - the character preceeded by "&" is
the hot key
line 3. the message that appears in the status bat for that menu item

If you change the contents of MyTemplates while you're in Sailwave you can
refresh the Publish menu contents via the View+RefreshPublishMenu menu
option.

Regards,
Colin

···

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/07/2002

Colin

Thanks for your swift reply - publish menu is all sorted out and
working now and my alternative template files are where they ought to
be.

Jenny

--- In sailwave@y..., "Colin Jenkins" <colin.jenkins@m...> wrote:

Hi,

>How do I get Sailwave to recognise an alternative results

template.<

A word of warning. Sailwave *always* zaps the Templates and Styles

folders

with the Sailwave supplied templates/styles on a new version

install. If

you create your own templates and styles - make a copy of the

template/style

you want to base yours on and save them into the MyTemplates or My

Styles

sub-folders - Sailwave never touches these.

So, create your templates in the MyTemplates folder and they'll then
automatically show up in the Publish menu.

There are some magic lines in the template that tell Sailwave

what/where to

display the template in the publish menu, e.g.

`template.setmenurank(1)`
`template.setmenutext('&Results...')`
`template.setmenumsg('Publish series summary and/or race details')`

line 1. where it appears in the menu list: 1,2,3,4 etc
line 2. the text to display in the menu - the character preceeded

by "&" is

the hot key
line 3. the message that appears in the status bat for that menu

item

If you change the contents of MyTemplates while you're in Sailwave

you can

refresh the Publish menu contents via the View+RefreshPublishMenu

menu

···

option.

Regards,
Colin

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/07/2002

Hi Colin,

I have tried to modify templates with out complete success. I can get them to
show up just fine in the publish menu, but when I have done that they don't seem
to pick up the styles selected from the styles drop down menu. They use only
the styles defined in the template. What I'm I doing wrong.

Dave Long

Colin Jenkins wrote:

···

Hi,

>How do I get Sailwave to recognise an alternative results template.<

A word of warning. Sailwave *always* zaps the Templates and Styles folders
with the Sailwave supplied templates/styles on a new version install. If
you create your own templates and styles - make a copy of the template/style
you want to base yours on and save them into the MyTemplates or My Styles
sub-folders - Sailwave never touches these.

So, create your templates in the MyTemplates folder and they'll then
automatically show up in the Publish menu.

There are some magic lines in the template that tell Sailwave what/where to
display the template in the publish menu, e.g.

`template.setmenurank(1)`
`template.setmenutext('&Results...')`
`template.setmenumsg('Publish series summary and/or race details')`

line 1. where it appears in the menu list: 1,2,3,4 etc
line 2. the text to display in the menu - the character preceeded by "&" is
the hot key
line 3. the message that appears in the status bat for that menu item

If you change the contents of MyTemplates while you're in Sailwave you can
refresh the Publish menu contents via the View+RefreshPublishMenu menu
option.

Regards,
Colin

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/07/2002

http://groups.yahoo.com/group/sailwave
http://www.sailwave.com/

Convert to daily digest of emails send blank email to:
sailwave-digest@yahoogroups.com
To unsubscribe from this group, send an email to:
sailwave-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Hi Dave,

I have been tweaking templates a bit over the last couple of days
On of the things I found is that the styles get placed immediately
before the </body> tag and that this needs to be on a line on its own
and in lower case other wise sailwave cannot figure out where to put
the selected style block.

Hope this helps.

There may be more gotchas, guess I better start making a list !!

Let me know how you get on.

Hugh Davies
RCYC Burnham on Crouch.

--- In sailwave@y..., Dave Long <dwlong@w...> wrote:

Hi Colin,

I have tried to modify templates with out complete success. I can

get them to

show up just fine in the publish menu, but when I have done that

they don't seem

to pick up the styles selected from the styles drop down menu.

They use only

the styles defined in the template. What I'm I doing wrong.

Dave Long

Colin Jenkins wrote:

> Hi,
>
> >How do I get Sailwave to recognise an alternative results

template.<

>
> A word of warning. Sailwave *always* zaps the Templates and

Styles folders

> with the Sailwave supplied templates/styles on a new version

install. If

> you create your own templates and styles - make a copy of the

template/style

> you want to base yours on and save them into the MyTemplates or

My Styles

> sub-folders - Sailwave never touches these.
>
> So, create your templates in the MyTemplates folder and they'll

then

> automatically show up in the Publish menu.
>
> There are some magic lines in the template that tell Sailwave

what/where to

> display the template in the publish menu, e.g.
>
> `template.setmenurank(1)`
> `template.setmenutext('&Results...')`
> `template.setmenumsg('Publish series summary and/or race details')

`

>
> line 1. where it appears in the menu list: 1,2,3,4 etc
> line 2. the text to display in the menu - the character

preceeded by "&" is

> the hot key
> line 3. the message that appears in the status bat for that menu

item

>
> If you change the contents of MyTemplates while you're in

Sailwave you can

> refresh the Publish menu contents via the View+RefreshPublishMenu

menu

> option.
>
> Regards,
> Colin
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.377 / Virus Database: 211 - Release Date: 15/07/2002
>
>
> http://groups.yahoo.com/group/sailwave
> http://www.sailwave.com/
>
> Convert to daily digest of emails send blank email to:
> sailwave-digest@y...
> To unsubscribe from this group, send an email to:
> sailwave-unsubscribe@y...
>
>
>
> Your use of Yahoo! Groups is subject to

http://docs.yahoo.com/info/terms/

Just for info - sailwave is actually looking for "</head" - it then places
the chosen style sheet lines immediately before that line containing that
string. So you're right, the "</head" needs to be on a line of it's own and
it was case-sensitive. I've fixed the case sensitivity aspect this evening.
CJ.

···

-----Original Message-----
From: rcodfleet [mailto:boatsheds@freeuk.com]
Sent: 30 July 2002 22:21
To: sailwave@yahoogroups.com
Subject: [sailwave] Re: Using alternative results template

Hi Dave,

I have been tweaking templates a bit over the last couple of days
On of the things I found is that the styles get placed immediately
before the </body> tag and that this needs to be on a line on its own
and in lower case other wise sailwave cannot figure out where to put
the selected style block.

Hope this helps.

There may be more gotchas, guess I better start making a list !!

Let me know how you get on.

Hugh Davies
RCYC Burnham on Crouch.

--- In sailwave@y..., Dave Long <dwlong@w...> wrote:

Hi Colin,

I have tried to modify templates with out complete success. I can

get them to

show up just fine in the publish menu, but when I have done that

they don't seem

to pick up the styles selected from the styles drop down menu.

They use only

the styles defined in the template. What I'm I doing wrong.

Dave Long

Colin Jenkins wrote:

> Hi,
>
> >How do I get Sailwave to recognise an alternative results

template.<

>
> A word of warning. Sailwave *always* zaps the Templates and

Styles folders

> with the Sailwave supplied templates/styles on a new version

install. If

> you create your own templates and styles - make a copy of the

template/style

> you want to base yours on and save them into the MyTemplates or

My Styles

> sub-folders - Sailwave never touches these.
>
> So, create your templates in the MyTemplates folder and they'll

then

> automatically show up in the Publish menu.
>
> There are some magic lines in the template that tell Sailwave

what/where to

> display the template in the publish menu, e.g.
>
> `template.setmenurank(1)`
> `template.setmenutext('&Results...')`
> `template.setmenumsg('Publish series summary and/or race details')

`

>
> line 1. where it appears in the menu list: 1,2,3,4 etc
> line 2. the text to display in the menu - the character

preceeded by "&" is

> the hot key
> line 3. the message that appears in the status bat for that menu

item

>
> If you change the contents of MyTemplates while you're in

Sailwave you can

> refresh the Publish menu contents via the View+RefreshPublishMenu

menu

> option.
>
> Regards,
> Colin
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.377 / Virus Database: 211 - Release Date: 15/07/2002
>
>
> http://groups.yahoo.com/group/sailwave
> http://www.sailwave.com/
>
> Convert to daily digest of emails send blank email to:
> sailwave-digest@y...
> To unsubscribe from this group, send an email to:
> sailwave-unsubscribe@y...
>
>
>
> Your use of Yahoo! Groups is subject to

http://docs.yahoo.com/info/terms/

http://groups.yahoo.com/group/sailwave
http://www.sailwave.com/

Convert to daily digest of emails send blank email to:
sailwave-digest@yahoogroups.com
To unsubscribe from this group, send an email to:
sailwave-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/2002

Hi Hugh and Colin,

Thanks. Putting the </head > on a line by itself worked great. I was using
Dreamweaver to edit a Copy of the standard Results template. Dreamweaver seems
to dislike the html code in the standard sailwave file and changes it in a
fairly substantial way. The second line of the file gets changed to
<head></head><body> and therefore all the stuff that was supposed to be in the
header section winds up in the body section. I discovered it when I opened the
original Results template in Dreamweaver and could not find </head> on a line by
it self. I couldn't understand how why it worked properly, so I opened it with
notepad and suddenly realized Dreamwaever was doing something odd to the file.
I don't know why yet, but will let you know if I find out.

Dave Long

Colin Jenkins wrote:

···

Just for info - sailwave is actually looking for "</head" - it then places
the chosen style sheet lines immediately before that line containing that
string. So you're right, the "</head" needs to be on a line of it's own and
it was case-sensitive. I've fixed the case sensitivity aspect this evening.
CJ.

-----Original Message-----
From: rcodfleet [mailto:boatsheds@freeuk.com]
Sent: 30 July 2002 22:21
To: sailwave@yahoogroups.com
Subject: [sailwave] Re: Using alternative results template

Hi Dave,

I have been tweaking templates a bit over the last couple of days
On of the things I found is that the styles get placed immediately
before the </body> tag and that this needs to be on a line on its own
and in lower case other wise sailwave cannot figure out where to put
the selected style block.

Hope this helps.

There may be more gotchas, guess I better start making a list !!

Let me know how you get on.

Hugh Davies
RCYC Burnham on Crouch.

--- In sailwave@y..., Dave Long <dwlong@w...> wrote:
> Hi Colin,
>
> I have tried to modify templates with out complete success. I can
get them to
> show up just fine in the publish menu, but when I have done that
they don't seem
> to pick up the styles selected from the styles drop down menu.
They use only
> the styles defined in the template. What I'm I doing wrong.
>
> Dave Long
>
> Colin Jenkins wrote:
>
> > Hi,
> >
> > >How do I get Sailwave to recognise an alternative results
template.<
> >
> > A word of warning. Sailwave *always* zaps the Templates and
Styles folders
> > with the Sailwave supplied templates/styles on a new version
install. If
> > you create your own templates and styles - make a copy of the
template/style
> > you want to base yours on and save them into the MyTemplates or
My Styles
> > sub-folders - Sailwave never touches these.
> >
> > So, create your templates in the MyTemplates folder and they'll
then
> > automatically show up in the Publish menu.
> >
> > There are some magic lines in the template that tell Sailwave
what/where to
> > display the template in the publish menu, e.g.
> >
> > `template.setmenurank(1)`
> > `template.setmenutext('&Results...')`
> > `template.setmenumsg('Publish series summary and/or race details')
`
> >
> > line 1. where it appears in the menu list: 1,2,3,4 etc
> > line 2. the text to display in the menu - the character
preceeded by "&" is
> > the hot key
> > line 3. the message that appears in the status bat for that menu
item
> >
> > If you change the contents of MyTemplates while you're in
Sailwave you can
> > refresh the Publish menu contents via the View+RefreshPublishMenu
menu
> > option.
> >
> > Regards,
> > Colin
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.377 / Virus Database: 211 - Release Date: 15/07/2002
> >
> >
> > http://groups.yahoo.com/group/sailwave
> > http://www.sailwave.com/
> >
> > Convert to daily digest of emails send blank email to:
> > sailwave-digest@y...
> > To unsubscribe from this group, send an email to:
> > sailwave-unsubscribe@y...
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/

http://groups.yahoo.com/group/sailwave
http://www.sailwave.com/

Convert to daily digest of emails send blank email to:
sailwave-digest@yahoogroups.com
To unsubscribe from this group, send an email to:
sailwave-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/2002

http://groups.yahoo.com/group/sailwave
http://www.sailwave.com/

Convert to daily digest of emails send blank email to:
sailwave-digest@yahoogroups.com
To unsubscribe from this group, send an email to:
sailwave-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Hi Dave,

I'll make Sailwave a little more sophisticated about finding the end of the
header section; i.e. make it handle the </head> being in the middle of a
line. NB: I use CuteHTML to edit HTML files - it's essentially a text
editor with HTML helpers, like colour coded text and facilities to insert
tags etc. Glad you're making progress and apologies for the lack of support
documentation at this date.

Regards,
Colin

···

-----Original Message-----
From: Dave Long [mailto:dwlong@worldnet.att.net]
Sent: 31 July 2002 03:11
To: sailwave@yahoogroups.com
Subject: Re: [sailwave] Re: Using alternative results template

Hi Hugh and Colin,

Thanks. Putting the </head > on a line by itself worked great. I was using
Dreamweaver to edit a Copy of the standard Results template. Dreamweaver
seems
to dislike the html code in the standard sailwave file and changes it in a
fairly substantial way. The second line of the file gets changed to
<head></head><body> and therefore all the stuff that was supposed to be in
the
header section winds up in the body section. I discovered it when I opened
the
original Results template in Dreamweaver and could not find </head> on a
line by
it self. I couldn't understand how why it worked properly, so I opened it
with
notepad and suddenly realized Dreamwaever was doing something odd to the
file.
I don't know why yet, but will let you know if I find out.

Dave Long

Colin Jenkins wrote:

Just for info - sailwave is actually looking for "</head" - it then places
the chosen style sheet lines immediately before that line containing that
string. So you're right, the "</head" needs to be on a line of it's own

and

it was case-sensitive. I've fixed the case sensitivity aspect this

evening.

CJ.

-----Original Message-----
From: rcodfleet [mailto:boatsheds@freeuk.com]
Sent: 30 July 2002 22:21
To: sailwave@yahoogroups.com
Subject: [sailwave] Re: Using alternative results template

Hi Dave,

I have been tweaking templates a bit over the last couple of days
On of the things I found is that the styles get placed immediately
before the </body> tag and that this needs to be on a line on its own
and in lower case other wise sailwave cannot figure out where to put
the selected style block.

Hope this helps.

There may be more gotchas, guess I better start making a list !!

Let me know how you get on.

Hugh Davies
RCYC Burnham on Crouch.

--- In sailwave@y..., Dave Long <dwlong@w...> wrote:
> Hi Colin,
>
> I have tried to modify templates with out complete success. I can
get them to
> show up just fine in the publish menu, but when I have done that
they don't seem
> to pick up the styles selected from the styles drop down menu.
They use only
> the styles defined in the template. What I'm I doing wrong.
>
> Dave Long
>
> Colin Jenkins wrote:
>
> > Hi,
> >
> > >How do I get Sailwave to recognise an alternative results
template.<
> >
> > A word of warning. Sailwave *always* zaps the Templates and
Styles folders
> > with the Sailwave supplied templates/styles on a new version
install. If
> > you create your own templates and styles - make a copy of the
template/style
> > you want to base yours on and save them into the MyTemplates or
My Styles
> > sub-folders - Sailwave never touches these.
> >
> > So, create your templates in the MyTemplates folder and they'll
then
> > automatically show up in the Publish menu.
> >
> > There are some magic lines in the template that tell Sailwave
what/where to
> > display the template in the publish menu, e.g.
> >
> > `template.setmenurank(1)`
> > `template.setmenutext('&Results...')`
> > `template.setmenumsg('Publish series summary and/or race details')
`
> >
> > line 1. where it appears in the menu list: 1,2,3,4 etc
> > line 2. the text to display in the menu - the character
preceeded by "&" is
> > the hot key
> > line 3. the message that appears in the status bat for that menu
item
> >
> > If you change the contents of MyTemplates while you're in
Sailwave you can
> > refresh the Publish menu contents via the View+RefreshPublishMenu
menu
> > option.
> >
> > Regards,
> > Colin
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.377 / Virus Database: 211 - Release Date: 15/07/2002
> >
> >
> > http://groups.yahoo.com/group/sailwave
> > http://www.sailwave.com/
> >
> > Convert to daily digest of emails send blank email to:
> > sailwave-digest@y...
> > To unsubscribe from this group, send an email to:
> > sailwave-unsubscribe@y...
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/

http://groups.yahoo.com/group/sailwave
http://www.sailwave.com/

Convert to daily digest of emails send blank email to:
sailwave-digest@yahoogroups.com
To unsubscribe from this group, send an email to:
sailwave-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/2002

http://groups.yahoo.com/group/sailwave
http://www.sailwave.com/

Convert to daily digest of emails send blank email to:
sailwave-digest@yahoogroups.com
To unsubscribe from this group, send an email to:
sailwave-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

http://groups.yahoo.com/group/sailwave
http://www.sailwave.com/

Convert to daily digest of emails send blank email to:
sailwave-digest@yahoogroups.com
To unsubscribe from this group, send an email to:
sailwave-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/2002

Sorry Dave, Colin,
I had meant to say </head>, no excuse except it was lateish.

Just a thought Colin, how about introducing an new magic tag
`html.stylewiz` for example.

Hugh

--- In sailwave@y..., "Colin Jenkins" <colin@s...> wrote:

Just for info - sailwave is actually looking for "</head" - it then

places

the chosen style sheet lines immediately before that line containing

that

string. So you're right, the "</head" needs to be on a line of it's

own and

it was case-sensitive. I've fixed the case sensitivity aspect this

evening.

···

CJ.