Difference between revisions of "Creating Scoreboard HTML"

From PC2wiki
Jump to: navigation, search
m (update description/add info)
m (Gotchas: added section)
Line 21: Line 21:
  
 
Consider copying and using the existing .xsl files supplied with [[PC&sup2;]] under <tt>samps/web/xsl/</tt> directory.
 
Consider copying and using the existing .xsl files supplied with [[PC&sup2;]] under <tt>samps/web/xsl/</tt> directory.
 +
 +
==Creating per group html==
 +
 +
See article [[Creating group web pages]]
  
 
==Gotchas==
 
==Gotchas==
  
# If the HTML file is not generated, insure that the .xsl filename is in the <tt>data/xml</tt> directory on the [[scoreboard module]].
+
# If the HTML file is not generated, insure that the .xsl filename is in the <tt>data/xml</tt> directory on the [[scoreboard module]] computer.
  
 
==See Also==
 
==See Also==
 
* [[Scoreboard XML]] - scoreboard XML created each time web pages are created.
 
* [[Scoreboard XML]] - scoreboard XML created each time web pages are created.

Revision as of 16:17, 12 September 2016

Scoreboard HTML files are automatically generated by the scoreboard module.

Review the Contest Administrator’s Installation and Configuration Guide (in the doc/ directory) section 9.7 Adding New HTML Files.

This article describes create html files using pc2.

pc2 generates scoreboard HTML by generating XML (Scoreboard XML) then transforming it into HTML using a XML Sytlesheet (XSLT) file.

Each time there is a standings or settings change the scoreboard module creates a Scoreboard XML then pc2 loops through all .xsl files found in the scoreboard's data/xml directory and generates html files in the html/ directory.

For example, pc2 will read data/xml/sumatt.xsl file, run in using the Scoreboard XML as input and create html/sumatt.html.

Directions to add a new HTML file

  1. Create a new XSLT file
  2. Copy the XSLT file into the scoreboard data/xml directory
  3. Regenerate the scoreboard HTML, use the Refresh button (also see When HTML Pages are created).

Consider copying and using the existing .xsl files supplied with PC² under samps/web/xsl/ directory.

Creating per group html

See article Creating group web pages

Gotchas

  1. If the HTML file is not generated, insure that the .xsl filename is in the data/xml directory on the scoreboard module computer.

See Also

  • Scoreboard XML - scoreboard XML created each time web pages are created.