4. Using the publish-button facility on projects.oucs.ox.ac.uk

The publish-button facility was designed for TEI XML files that are on www.oucs.ox.ac.uk. The buttons that appear in the page on the preview site are produced when the file is transformed by XSL from TEI to HTML. So it is the XSL that is generating the HTML for the buttons.

Obviously, the publish-button facility won't automatically be available to you if you are working elsewhere.

Following a request from Howard Noble, I found a way of providing the publish-button facility on a site that is in projects.oucs.ox.ac.uk. The files on this site are written in HTML. If you go to https://projects.oucs.ox.ac.uk:4443/lowcarbonict, you will see that all the pages of this site have the publish-button facility.

If you have a site on projects.oucs.ox.ac.uk that has both a preview and a publish tree, and you want publish buttons to appear on the pages that are on your preview site, each HTML file on your site has to have the lines:

<script src="/stylesheet/js/publishbutton.js" type="text/javascript"><!--
fudge--></script>

in the HTML head element.

The publish buttons should then appear.

Up: Contents Previous: 3. Improvements Next: 5. Thanks