Fantastic… thanks. That worked a treat. If anyone is interested the CSS we use has some tweaks so that the results display nicely with mobile devices and also condense down and print well.
···
—In sailwave@yahoogroups.com, sailwave@yahoogroups.com wrote:
Yes. If you are familiar with CSS it is relatively easy.
Find the “Templates” folder/directory on your computer. The “header.txt”
file has the info to be included in the header of every published html
file (if you go to the template you want to use you can change the
“.txt” file that gets included with a particular style so you can have
different “.txt” files for each style if you want). My club has two
“results”-type publishing styles (and, for clarity, we’ve deleted all
the templates we don’t use; I suggest making a copy of the entire
folder/directory as a backup before messing around).
Open the “header.txt” file (or create a re-named copy and edit that).
There are two changes to be made.
- You need to delete the styles that are being published in the HTML
file itself as per CSS they will take precedence over any external style
file. Find and delete the following (between the pluses):
+++++
`html.style()`
+++++
- In the head section, add a reference to your external CSS file there.
My club does this and our “include” looks like this (between the pluses):
+++++
+++++
We store the css file in the same folder/directory on our server as the
individual results HTML files. You can, of course, point elsewhere by
changing the HREF appropriately.
Hope this helps,
Art
PS - The styles priority is in-line > in file > in external CSS file. So
you can always individualize individual files it need be. If you have
two or three different styles for results (for different kinds of races)
then instead of editing HTML pages individually I would create
corresponding template files for each kind of race. As I said, my club
has two styles for results: “Results” for standard races and
“Results-KoH” for our KoH race.
On 10/21/2013 1:43 PM, demdix@… wrote:
Hi there,
is it possible to have an include to a URL for the Styles when publishing? I am thinking that I want my styles file to exist on the website, if I update it then all results pages will automatically update. At the moment if I change the Styles file I have to republish all the results if I want them to use the new Styles file.