Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The zip file contains all articles, folders, documents and links in your handbook.

Image RemovedImage Added

Ex: Content of the zip file

...

Code Block
languagexml
themeConfluence
titleFigure 4: Example of the indexpages.html file
<!DOCTYPE html>
<html>
	<head>..</head>
	<body>
		<div id="realurl" data-target="http://[link to the book]/122414/external">
			<a href="http://[link to the book]/122414/external" target="_blank">http://[link to the book]/122414/external</a>
		</div>
		<div id="metadata">..<div id="content" data-contenttype="article" data-lastmodified="2015-nov-05 12:12:15" data-contentid="122414" data-itemid="20338" data-culturecode="nb-NO"  data-lastwritedate="2018-mar-21 11.55.39"  data-isedited="1">
			...[body of the article]
 
			<a href="100882.html">[name of article]</a>
			<a href="#">[name of not found article]</a>
		</div>
	</body>
</html>

...

Code Block
languagexml
themeConfluence
titleFigure 6: Example of content div of a folder
<div id="content" data-contenttype="folder" data-lastmodified="2015-nov-05 12:12:15" data-contentid="122416" data-itemid="20338" data-culturecode="nb-NO" data-isvisible="1" data-lastwritedate="2017-feb-20 13.48.58"  data-isedited="1">
	<h1>[Name of the folder]</h1>
	<ul>
		<li><a href="122421.html">[name of the element]</a></li>	
	</ul>
</div

...

Code Block
languagexml
titleFigure 17: Example of the structureresource.xml file
<?xml version="1.0" encoding="utf-8"?>
<resources>
	<element itemid="39">
    	<resource agreement="Agreement 1" name="..." type="CollectiveAgreement" value="419fa023-e822-4022-a3b4-bace3ba88340.html" guid="419fa023-e822-4022-a3b4-bace3ba88340" />
    	<resource agreement="Agreement 2" name="..." type="CollectiveAgreement" value="c5e8743f-7450-44e7-a9f1-524baa497c54.html" guid="c5e8743f-7450-44e7-a9f1-524baa497c54" />
	</element>
	<element itemid="40">
    	<resource agreement="Agreement 2" name="..." type="CollectiveAgreement" value="c5e8743f-7450-44e7-a9f1-524baa497c54.html" guid="c5e8743f-7450-44e7-a9f1-524baa497c54" />
	</element>
</resources>

The element node (the article) has a list of resources. Each resource is in this case a specific agreement. The attributes for the resource is documented in figure 7.

Figure 78
AttributeDescription
AgreementName of main agreement
NameName of the resource
Type

The available types are: CollectiveAgreement

ValuePointer to name of rendered html file in CollectiveAgreements folder
GuidThe unique GUID for the resource