diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl index 69b4b606b..780d5efab 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl @@ -53,11 +53,14 @@ - Tags for displaying Content Items + + Tags for displaying Content Items +

- These tags are common tags for displaying Content Items. For most Content Types - there are special tags provided by other files. + These tags are common tags for displaying Content Items. + For most Content Types there are special tags provided by other + files.

@@ -65,47 +68,53 @@

- The content-item element with the attribute mode set to - detail or without the attribute inserts the HTML representation of the - detail view of the current content item. The content item can either be the greeting - item or normal item. + The content-item element with the attribute < + code>mode set to detail or without the + attribute inserts the HTML representation of the detail view of + the current content item. The content item can either be the + greeting item or normal item.

- The HTML representation of a content item is defined using special templates - with the contentitem-layout element as root. Usually these templates - are located in the templates/content-items folder. Which template is - used for a particular content item is defined by the conf/templates.xml - file. In this file there is a content-items element below the - templates element. The association between templates and - content items is described by the content-item elements in the - content-items element. The content-item has four - optional attributes (at least on must be present) which are used to limit the - content items for which a template is used. The four attributes are: + The HTML representation of a content item is defined using + special templates with the contentitem-layout + element as root. Usually these templates are located in the + templates/content-items folder. Which template is + used for a particular content item is defined by the + conf/templates.xml file. In this file there is a + content-items element below the + templates element. The association between + templates and content items is described by the + content-item elements in the + content-items element. The + content-item has four optional attributes + (at least on must be present) which are used to limit the + content items for which a template is used. The four attributes + are:

oid
- Limit the use of the template to a specific content item, identified by its - OID (the OID of the master version). Can't be used in combination with the other - attributes. + Limit the use of the template to a specific content item, + identified by its OID (the OID of the master version). Can't + be used in combination with the other attributes.
content-section
- The name of the content section to which the item belongs. Can be used - in combination with the category and content-type - attributes. + The name of the content section to which the item belongs. + Can be used in combination with the category + and content-type attributes.
category
- The template is only used for the content item if the item is viewed as - item of the category. The category is set as a path containing the names - the categories. + The template is only used for the content item if the item + is viewed as item of the category. The category is set as + a path containing the names the categories.
content-type @@ -116,7 +125,9 @@
- The template system + + The template system +
@@ -191,91 +202,91 @@ + and @category = $category + and @content-type = $content-type]"> + and @category = $category + and @content-type = $content-type]"/> + and @category = $category + and not(@content-type)]"> + and @category = $category + and not(@content-type)]"/> + and not(@category) + and @content-type = $content-type]"> + and not(@category) + and @content-type = $content-type]"/> + and not(@category) + and not(@content-type)]"> + and not(@category) + and not(@content-type)]"/> + and @category = $category + and @content-type = $content-type]"> + and @category = $category + and @content-type = $content-type]"/> + and @category = $category + and not(@content-type)]"> + and @category = $category + and not(@content-type)]"/> + and not(@category) + and @content-type = $content-type]"> + and not(@category) + and @content-type = $content-type]"/> @@ -316,9 +327,10 @@

- The content-item with the mode attribute set to - link insert the HTML representation of a content item. In this case - the content item to show is provided using by a XSL parameter which has to be + The content-item with the mode + attribute set to link insert the HTML + representation of a content item. In this case the content item + to show is provided using by a XSL parameter which has to be provided by a surrounding tag like related-link.

@@ -372,28 +384,33 @@

- The content-item element with the mode attribute set to - list inserts the HTML representation of the the list view of a content - item. The list view is primarily used in object lists. + The content-item element with the mode + attribute set to list inserts the HTML + representation of the the list view of a content item. The list + view is primarily used in object lists.

- As for the detail view, the HTML representation of the list view of a conten item is - defined using special templates with the contentitem-layout element as - root. Usually these templates are located in the - templates/content-items folder. Which is used for a particular content - item is defined in the conf/templates.xml file. In this file there is - a content-items element below the templates element. + As for the detail view, the HTML representation of the list view + of a conten item is defined using special templates with the + contentitem-layout element as root. Usually these + templates are located in the + templates/content-items folder. Which is used for a + particular content item is defined in the + conf/templates.xml file. In this file there is a + content-items element below the + templates element.

- There three attributes which can be used to define in which cases a specific - template is used: + There three attributes which can be used to define in which + cases a specific template is used:

style
- Used to select a specific style for the list view of the item. To select a style - add a style attribute to the content-item attribute - in the application layout file. + Used to select a specific style for the list view of the + item. To select a style add a style attribute + to the content-item attribute in the + application layout file.
content-type
The content-type of the item.
@@ -401,8 +418,9 @@ category
- The template is only used for the content item if the item is viewed as item of - the category. The category is set as a path contains the names the categories. + The template is only used for the content item if the item + is viewed as item of the category. The category is set as a + path contains the names the categories.
@@ -570,6 +588,14 @@
+ + +

+ Root element for the layout templates describing a content item + layout. +

+
+
@@ -579,6 +605,13 @@ + + +

+ Show the title of the current content item. +

+
+
@@ -595,8 +628,9 @@

- Provides a link to content item itself. Useful if a content item is shown using a - portlet and you want to create a link to the normal detail view of the item. + Provides a link to content item itself. Useful if a content item + is shown using a portlet and you want to create a link to the + normal detail view of the item.

@@ -606,10 +640,22 @@ + select="concat($context-prefix, + '/redirect/?oid=', + $contentitem-tree/masterVersion/@oid)"/>
+ + +

+ Generic tag to test if a content item has a specific property. + The tags enclosed by if-property are only + processed if the content item has a property with the provided + name. +

+
+
@@ -625,6 +671,20 @@ + + +

+ Generic tag to show the value of the property with the + specified name. This tag can be used if there are no special + tags for a content type. +

+
+ + + Generic tag for showing date properties + + +
@@ -664,7 +724,25 @@ - + + +

+ Generic tag for showing date properties. The format of the + date is configured using one or more date-element + inside this tag. +

+
+ + + Generic tag for showing properties. + + + + + How to format date values in Foundry. + + +
diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/formitem.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/formitem.xsl index caf2cbf11..697302220 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/formitem.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/formitem.xsl @@ -29,12 +29,42 @@ exclude-result-prefixes="xsl xs bebop cms formbuilder foundry nav ui" version="2.0"> + + + Tags for ccm-cms-types-formitem and ccm-cms-types-formsectionitem + + +

+ The tags in these file are used to create the HTML + representation of the FormItem (and the FormSectionItems used + by the FormItem). +

+
+
+ + + + +

+ Outputs the description of a FormItem. +

+
+
+ + +

+ Outputs the components (the controls) of a form. Unfortunately + is not yet possible to customise the HTML of the form + components. +

+
+
diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/fsi.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/fsi.xsl index dc5a9e2cd..5eb1afed7 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/fsi.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/fsi.xsl @@ -28,6 +28,23 @@ exclude-result-prefixes="xsl xs bebop cms foundry nav ui" version="2.0"> + + Tags for ccm-cms-types-filestorageitem + +

+ The tags in these file can be used to output the special + properties of the file storage item. +

+
+
+ + + +

+ Outputs the description of a file storage item. +

+
+
@@ -43,6 +60,35 @@ + + +

+ Outputs the link to download the file associated with the + file storage item. The tag has an optional attribute to decide + if the link should force a download or not. +

+
+ + +

+ If set to stream the file will be opened + in the approbriate program or browser plugin if available. + If not set or set to download the link + should cause a downlaod. +

+

+ The real behaviour depends on the configuration of the + browser used to to view the site. +

+
+ +

+ If set to true the name of the file associated + with the file storage item is included into the link. +

+
+
+
diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/generic-orgaunit.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/generic-orgaunit.xsl index 848aa6ed6..56ec62d53 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/generic-orgaunit.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/generic-orgaunit.xsl @@ -28,6 +28,29 @@ exclude-result-prefixes="xsl xs bebop cms foundry nav ui" version="2.0"> + + Common tags for content types derived from GenericOrganizationalUnit + +

+ The tags in these file are used to create the HTML representation + of types derived from GenericOrganzationalUnit, for example + SciProject, SciDepartment or SciInstitute. +

+

+ The informations about a organizational unit are provided + in several sections (tabs). +

+
+
+ + + +

+ Root element for outputting the available tabs of organizational + unit. +

+
+
@@ -41,6 +64,14 @@ + + +

+ This tag encloses the HTML for a individual tab. It also + passes the URL for viewing the tab to the enclosed elements. +

+
+
@@ -65,12 +96,36 @@ + + +

+ Outputs the name of the avilable tab. +

+
+ + + Alternative tag for labeling a tab. + + +
+ + +

+ This tag is alternative for tab-name. It uses + the tab name and the type name of the orga unit to lookup + the label in the localisable texts of the theme. More + specifially it looks for a text in in + texts/$orgaunit-type-name.xml with the name of + the tab as id. +

+
+
@@ -78,6 +133,15 @@ + + +

+ Enclosing tag for several other tags for displaying informations + about a organisational unit. The tag passes several informations + to the enclosed tags. +

+
+
@@ -91,6 +155,17 @@ + + +

+ Encloses the tags for displaying the informations from the + current tag. The immediate sub elements of this tag can only + be tab. The name attribute of the + tab elements defines for which tab the layout + enclosed by a tab element is used. +

+
+
@@ -107,6 +182,13 @@ + + +

+ Generic tag to output a property in a tab of a orga unit. +

+
+
@@ -121,6 +203,23 @@ + + +

+ Outputs the content of the current tab as text. If the + disable-output-escaping attribute is set + to true the content is shown as it is. Otherwise + some characters are escaped. +

+
+ + +

+ Disable output escaping? +

+
+
+
@@ -135,12 +234,27 @@ + + +

+ Outputs the value of the addendum property + of an orga unit. +

+
+
+ + +

+ Root tag for showing the list of members of an orga unit. +

+
+
@@ -151,6 +265,13 @@ + + +

+ Encloses the layout for an individual member entry. +

+
+
@@ -171,6 +292,14 @@ + + +

+ Outputs the status of the current member. The text itself + is retrieved from texts/$orgaunit-type-name. +

+
+
@@ -180,6 +309,14 @@ + + +

+ Outputs the role of the current member. The text itself + is retrieved from texts/$orgaunit-type-name. +

+
+
@@ -189,6 +326,13 @@ + + +

+ Shows the contact entries associated with a member. +

+
+
@@ -206,6 +350,13 @@ + + +

+ +

+
+
@@ -214,6 +365,13 @@ + + +

+ Root tag for outputting the contact associated with an orga unit. +

+
+
@@ -222,6 +380,13 @@ + + +

+ Outputs the person associated with orga unit contact. +

+
+
@@ -232,6 +397,13 @@ + + +

+ Outputs the contact entries of the orga unit contact. +

+
+
diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/loaders.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/loaders.xsl index c76664b99..969004617 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/loaders.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/loaders.xsl @@ -44,10 +44,24 @@ - Invokes the foundry CSS loader. The CSS loader will parse the file - conf/css-files.xml to determine for which CSS an - <link> element should be added to the HTML output. For a full - explanation please refer to the CSS files section. +

+ Invokes the foundry CSS loader. The CSS loader will parse the file + conf/css-files.xml to determine for which CSS an + <link> element should be added to the HTML output. For a full + explanation please refer to the CSS files section. +

+

+ If you are using LESS for + your stylesheets you can include the LESS JavaScript compiler to + compile your LESS stylesheets on the fly to CSS. To do that + you must first set the less-onthefly setting + in conf/global.xml to true. + In the conf/css-files.xml each CSS file entry + which is created from a LESS file must have a less + attribute with its value set to true. Also for + these files the file extension (.css) should be + omitted. +

@@ -152,11 +166,11 @@ +