Hi Sailwave users,
I’d like to change the layout of the results page, essentially swapping
and around.
Currently, ‘Event Name’ is set to
, ‘Venue Name’ to (see screenshot). The current layout is Event Name at the top, then Venue Name. I can change the sizes using a custom style/template, but I’d like to change the order on the page, to have ‘Emsworth Sailing Club’ at the top of the page, then the Event Name (here ‘Harvey Dixon 2019’) under that.
Last year I had the ‘Emsworth Sailing Club’ as ‘Event name’ and the name of the series as ‘Venue name’ in Series properties. This meant that I could set the layout on the results page as I wanted. But when I came to upload the season’s results to the RYA at the end of the year, I had to manually change every series, which I’m keen not to do this year.
Is this one of the ‘adjustables’ in Sailwave, or is it fixed, please? If adjustable, where is it? I’ve looked around, but can’t spot it…
Many thanks for your advice, and Sailwave
Simon Langford
Emsworth Sailing Club
Hi Simon,
If I understand correctly.
Yes this is easy to change, you can create your own custom Results.
Copy the results.htm file from C:\Program Files (x86)\Sailwave\Templates\Results.htm to C:\Users\Public\Documents\Sailwave\Templates\ResultsEW.htm
Note we have changed the name to ResultsEW.htm
Now edit this file with a text editor and add EW to the second line so it becomes
template.setmenutext('&ResultsEW...')
edit the last line but 2 and add EW so that it becomes
html.include('headerEW.txt')
Copy the header.txt file from C:\Program Files (x86)\Sailwave\Templates\header.txt to C:\Users\Public\Documents\Sailwave\Templates\headerEW.txt
Note we have changed the name to headerEW.txt
Now edit the file headerEW.txt to swap event and venue so it becomes venue and then event as follows
`[venue.name](http://venue.name)`
`[event.name](http://event.name)`
If Sailwave is running Restart Sailwave
Then when you select Publish you will get an additional option on the menu ResultsEW which will publish the results with the Venue and Event reversed
Let me know if this works for you.
Of course, you don’t have to use EW as long as it is the same in all the places.
Jon
···
Jon Eskdale
03333 443377
07530 112233
Dear Jon,
Thank you, as always, for your quick reply and comprehensive instructions.
It worked, though for anyone following the instructions, I had to amend the Setup\Global Options\Folders\My template files\ to C:\Users\Public\Documents\Sailwave\Templates\ for the option to show under ‘Publish’.
Much appreciated,
Simon
···
On Mon, Mar 4, 2019 at 11:20 PM Jon Eskdale jon@sailwave.com [sailwave] sailwave@yahoogroups.com wrote:
Hi Simon,
If I understand correctly.
Yes this is easy to change, you can create your own custom Results.
Copy the results.htm file from C:\Program Files (x86)\Sailwave\Templates\Results.htm to C:\Users\Public\Documents\Sailwave\Templates\ResultsEW.htm
Note we have changed the name to ResultsEW.htm
Now edit this file with a text editor and add EW to the second line so it becomes
template.setmenutext('&ResultsEW...')
edit the last line but 2 and add EW so that it becomes
html.include('headerEW.txt')
Copy the header…txt file from C:\Program Files (x86)\Sailwave\Templates\header.txt to C:\Users\Public\Documents\Sailwave\Templates\headerEW.txt
Note we have changed the name to headerEW.txt
Now edit the file headerEW.txt to swap event and venue so it becomes venue and then event as follows
`[venue.name](http://venue.name)`
`[event.name](http://event.name)`
If Sailwave is running Restart Sailwave
Then when you select Publish you will get an additional option on the menu ResultsEW which will publish the results with the Venue and Event reversed
Let me know if this works for you.
Of course, you don’t have to use EW as long as it is the same in all the places.
Jon
Jon Eskdale
03333 443377
07530 112233
On Mon, 4 Mar 2019 at 20:34, subscribe@usquam.com [sailwave] sailwave@yahoogroups.com wrote:
Hi Sailwave users,
I’d like to change the layout of the results page, essentially swapping
and around.
Currently, ‘Event Name’ is set to
, ‘Venue Name’ to (see screenshot). The current layout is Event Name at the top, then Venue Name. I can change the sizes using a custom style/template, but I’d like to change the order on the page, to have ‘Emsworth Sailing Club’ at the top of the page, then the Event Name (here ‘Harvey Dixon 2019’) under that.
Last year I had the ‘Emsworth Sailing Club’ as ‘Event name’ and the name of the series as ‘Venue name’ in Series properties. This meant that I could set the layout on the results page as I wanted. But when I came to upload the season’s results to the RYA at the end of the year, I had to manually change every series, which I’m keen not to do this year.
Is this one of the ‘adjustables’ in Sailwave, or is it fixed, please? If adjustable, where is it? I’ve looked around, but can’t spot it…
Many thanks for your advice, and Sailwave
Simon Langford
Emsworth Sailing Club