Page tree

Versions Compared

Key

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

...

Figure 5

Attribute

Description

Data-contenttype

[Article]: if element is an article
[Folder]: if element is a folder. Could contains several elements
[Url]: if element is a link
[Resource]: if element is a document

[collectiveagreement]: if element is a collective agreement

Data-lastmodified

Officially modified date of active version

Data-contentid

Unique ID of the rendered page, same as contextid in table 2

data-culturecode

[nb-NO]: language code of the element, norwegian
[EN] : english language code
[sv-SE]: swedish language code

Data-itemid

Unique ID for each element

Data-isvisible

[0]: if the element is not visible for end user
[1]: if the element is visible for end user

Data-lastwritedateLast modified date.
Data-isedited[0]: if the element has not been modified after publishing
[1]: if the element has been modified after publishing
Data-guidthe unique guide for the element. Only available if the element has contenttype collectiveagreement
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

...

Figure 8
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



Code Block
languagexml
themeConfluence
titleFigure 9: Example of content div of a collective agreement
<div id="content" data-contenttype="collectiveagreement" data-lastmodified="2015-nov-05 12:12:15" data-guid="41f2eb6d-6c18-4327-8ed5-9be20b11c91d" data-culturecode="nb-NO" data-isvisible="1" data-lastwritedate="2017-feb-20 13.48.58"  data-isedited="1">
	....
[body of the article]
</div

Figure 5 describes information about the attributes inside content div element.