How do I achieve custom template design?

I'm a web designer helping a Portsmouth sailing club out with their web site. They use Sailwave to publish their results as .htm files via FTP. I've downloaded a copy of Sailwave just so I can see what is going on inside the app.

The sailwave.com home page says…

"User definable templates (HTML) and styles (CSS)"

But it's not obvious to me where this is generated or how it is influenced, nor can I find any relevant help online or in the Alamitos Bay PDF (I might have missed it).

I've had a look inside Sailwave/Templates/Results.htm and see little more than lines like:

`html.include('header.txt')`
`html.resultswiz()`
`html.include('footer.txt')`

What I'd really like to do is generate a <link> tag to a specific linked stylesheet that takes care of styling rather than set styles somewhere inside the app itself, but whether or not that is possible I would like to also influence the HTML with classes.

Any clues please?

Jonathan,

I have never tried creating my own customised look for the HTML

output from Sailwave; however I think you need to look in the Styles
folder not Templates folder.

Note, if you do create a customised style for your HTML presentation

then save the file in the My Styles folder not the Styles folder.
This will ensure that your customised style does not get lost when
Sailwave is upgraded.

I hope  this hint helps.

The following might also provide a hint for you:
          >

          > deane,

          >

          > if you are using the latest version you can use

javascript though i think the “at” problem is fixed.

          >

          > when publishing the results template click "use

javascript" which tells it to not do the hardwiring you
are referring to.

          >

          > then at the next stage click the scripts checkbox and

include the results script.

          >

          > you should end up with the same looking results -

they are however generated using javascript.

          >

          > copy results.js from program

files/sailwave/javascript to a folder of your choice

          >

          > in sailwave - in the global settings folders tab tell

sailwave where your scripts are

          >

          > tweak your copy of results.js as you like - should be

easy to find the “at” and the “class”

          > 

          > restart sailwave and try your script

          >

          > nb:

          >

          > the class thing can be done by editing the

resSummaryTitle function so it looks like this:-

          >

          > function resSummaryTitle() {

          >   if (swSummary.Field)

          >     document.write('<h3 class="summarytitle"

id=“summary’ + swSummary.TagValue + '”>’ + ‘’ + ’ ’ +
swSummary.FieldName + ‘’);

          >   else

          >     document.write('<h3 class="summarytitle">'
  • swStr.SummaryTitle + ‘’);

            > }
    
            >
    
            > the at thing can be done by finding the line towards
    

the top of the file:-

          >

          >   swStr.Wordat                  = 'at';

          >

          > and changing to:-

          >

          >   swStr.Wordat                  = '';

          >

          > Cheers,

          > Colin J

          > >

I’m planning to move to Sailwave and have run a
couple of test events on it.

In reference to

In Edit-Race - in the ‘Published date or day’ box
I entered the dates

14/4, 21/4 & 28/4.

These dates are displayed under the race number
in the Overall Result.

However, the word ‘at’ is added after these dates
in the header of the individual race results.

I have two questions …

  1. How do I get rid of the ‘at’ ? (I dont want
    ‘at time’)
  1. The word ‘class’ is added after the class name
    in the headers of the overall & race results. How do I
    get rid of this ‘class’ word?

I suspect that the words ‘class’ and ‘at’ are
built into the program.

Kind regards,

Huw
···

http://sailwave.com

http://www.hyc.ie/reshyc/2012/open/springwarmer/class3.htm

Thanks, Huw. I'll do some more hunting within the app and see if I can make sense of it.

kr

Jonathan

···

--- In sailwave@yahoogroups.com, Huw Pearce <huw.pearce@...> wrote:

Jonathan,

I have never tried creating my own customised look for the HTML output
from Sailwave; however I think you need to look in the Styles folder not
Templates folder.

Note, if you do create a customised style for your HTML presentation
then save the file in the My Styles folder not the Styles folder. This
will ensure that your customised style does not get lost when Sailwave
is upgraded.

I hope this hint helps.

The following might also provide a hint for you:

                    On 01/05/2012 23:19, Colin Jenkins wrote:
                     >
                     > deane,
                     >
                     > if you are using the latest version you can use
                    javascript though i think the "at" problem is fixed.
                     >
                     > when publishing the results template click "use
                    javascript" which tells it to not do the hardwiring
                    you are referring to.
                     >
                     > then at the next stage click the scripts checkbox
                    and include the results script.
                     >
                     > you should end up with the same looking results -
                    they are however generated using javascript.
                     >
                     > copy results.js from program
                    files/sailwave/javascript to a folder of your choice
                     >
                     > in sailwave - in the global settings folders tab
                    tell sailwave where your scripts are
                     >
                     > tweak your copy of results.js as you like -
                    should be easy to find the "at" and the "class"
                     >
                     > restart sailwave and try your script
                     >
                     > nb:
                     >
                     > the class thing can be done by editing the
                    resSummaryTitle function so it looks like this:-
                     >
                     > function resSummaryTitle() {
                     > if (swSummary.Field)
                     > document.write('<h3 class="summarytitle"
                    id="summary' + swSummary.TagValue + '">' + '' + ' '
                    + swSummary.FieldName + '</h3>');
                     > else
                     > document.write('<h3 class="summarytitle">' +
                    swStr.SummaryTitle + '</h3>');
                     > }
                     >
                     > the at thing can be done by finding the line
                    towards the top of the file:-
                     >
                     > swStr.Wordat = 'at';
                     >
                     > and changing to:-
                     >
                     > swStr.Wordat = '';
                     >
                     > Cheers,
                     > Colin J
                     > http://sailwave.com
                     >
                     > On 01/05/2012 22:16, deane111 wrote:
                     >>
                     >>
                     >> I'm planning to move to Sailwave and have run a
                    couple of test events on it.
                     >>
                     >> In reference to
                    http://www.hyc.ie/reshyc/2012/open/springwarmer/class3.htm
                     >>
                     >> In Edit-Race - in the 'Published date or day'
                    box I entered the dates
                     >> 14/4, 21/4 & 28/4.
                     >>
                     >> These dates are displayed under the race number
                    in the Overall Result.
                     >>
                     >> However, the word 'at' is added after these
                    dates in the header of the individual race results.
                     >>
                     >> I have two questions ...
                     >>
                     >> 1. How do I get rid of the 'at' ? (I dont want
                    'at time')
                     >> 2. The word 'class' is added after the class
                    name in the headers of the overall & race results.
                    How do I get rid of this 'class' word?
                     >>
                     >> I suspect that the words 'class' and 'at' are
                    built into the program.

Kind regards,
Huw

On 15/06/2012 11:00, Jonathan wrote:
>
> I'm a web designer helping a Portsmouth sailing club out with their
> web site. They use Sailwave to publish their results as .htm files via
> FTP. I've downloaded a copy of Sailwave just so I can see what is
> going on inside the app.
>
> The sailwave.com home page says...
>
> "User definable templates (HTML) and styles (CSS)"
>
> But it's not obvious to me where this is generated or how it is
> influenced, nor can I find any relevant help online or in the Alamitos
> Bay PDF (I might have missed it).
>
> I've had a look inside Sailwave/Templates/Results.htm and see little
> more than lines like:
>
> `html.include('header.txt')`
> `html.resultswiz()`
> `html.include('footer.txt')`
>
> What I'd really like to do is generate a <link> tag to a specific
> linked stylesheet that takes care of styling rather than set styles
> somewhere inside the app itself, but whether or not that is possible I
> would like to also influence the HTML with classes.
>
> Any clues please?
>
>