-
-
+
+
+
+ Function foundry:get-attribute-value
+
+
A helper function for retrieving an attribute value from an element. If the
attribute is set on the current element the value of the attribute is used as
result. If the attribute is not set the default-value is used. This
method is used by several layout tags with optional attributes. A common use pattern
looks like this:
-
-
+
<xsl:template match="example">
<xsl:variable name="width"
select="foundry:get-attribute-value(current(), 'width', '640')" />
<xsl:variable name="height"
select="foundry:get-attribute-value(current(), 'height', '480')" />
/<xsl:template>
-
-
+
In this example, the element example has two optional attributes:
with and height. If the attribute is set in processed XML,
the value set there is used. Otherwise the default value (640
@@ -2645,828 +4139,343 @@
each of the variables.
-
-
-
-
-
-
-
- Parameters
-
-
-
-
-
- |
-
- | Name |
-
- Mandatory |
-
- Type |
-
- Description |
-
-
-
-
-
-
-
-
-
- |
- node
-
- |
-
-
-
-
- |
-
-
- any
-
- |
-
-
-
-
- |
-
-
-
-
- |
- attribute-name
-
- |
-
-
-
-
- |
-
-
- any
-
- |
-
-
-
-
- |
-
-
-
-
- |
- default-value
-
- |
-
-
-
-
- |
-
-
- any
-
- |
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
Result
-
-
Result type
-
-
- any
-
-
-
-
Description
-
-
-
-
- The value of the attribute if it is set on the current element, the
- default-value otherwise.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Function foundry:get-setting
-
-
-
-
-
-
-
-
-
+
Parameters
+
+
+
+ | Name |
+ Mandatory |
+ Type |
+ Description |
+
+
+
+
+ | node |
+ |
+ any |
+ |
+
+
+ | attribute-name |
+ |
+ any |
+ |
+
+
+ | default-value |
+ |
+ any |
+ |
+
+
+
+
+
Result
+
Result type
+
any
+
Description
+
+
+ The value of the attribute if it is set on the current element, the
+ default-value otherwise.
+
+
+
+
+
+
+
+ Function foundry:get-setting
+
+
Convenient function for calling foundry:get-setting with only the
module name and setting name.
-
-
-
-
-
-
-
- Parameters
-
-
-
-
-
- |
-
- | Name |
-
- Mandatory |
-
- Type |
-
- Description |
-
-
-
-
-
-
-
-
-
- |
- module
-
- |
-
-
- yes
-
- |
-
-
- string
-
- |
-
-
-
-
- The module of the settings. May be an empty string ('').
-
-
-
- |
-
-
-
-
- |
- setting
-
- |
-
-
- yes
-
- |
-
-
- string
-
- |
-
-
-
-
- The name of the setting to retrieve.
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
Result
-
-
Result type
-
-
- string
-
-
-
-
Description
-
-
-
-
- The value of the setting.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Function foundry:get-setting
-
-
-
-
-
-
-
-
-
+
Parameters
+
+
+
+ | Name |
+ Mandatory |
+ Type |
+ Description |
+
+
+
+
+ | module |
+ yes |
+ string |
+
+
+ The module of the settings. May be an empty string ('').
+
+
+ |
+
+
+ | setting |
+ yes |
+ string |
+
+
+ The name of the setting to retrieve.
+
+
+ |
+
+
+
+
+
Result
+
Result type
+
string
+
Description
+
+
+ The value of the setting.
+
+
+
+
+
+
+
+ Function foundry:get-setting
+
+
Convenient function for calling foundry:get-setting with only the
module name, the setting name and an default value.
-
-
-
-
-
-
-
- Parameters
-
-
-
-
-
- |
-
- | Name |
-
- Mandatory |
-
- Type |
-
- Description |
-
-
-
-
-
-
-
-
-
- |
- module
-
- |
-
-
- yes
-
- |
-
-
- string
-
- |
-
-
-
-
- The module of the settings. May be an empty string ('').
-
-
-
- |
-
-
-
-
- |
- setting
-
- |
-
-
- yes
-
- |
-
-
- string
-
- |
-
-
-
-
- The name of the setting to retrieve.
-
-
-
- |
-
-
-
-
- |
- default
-
- |
-
-
- yes
-
- |
-
-
- string
-
- |
-
-
-
-
- A default value which is used when the setting is not configured.
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
Result
-
-
Result type
-
-
- string
-
-
-
-
Description
-
-
-
-
- The value of the setting or the default value if the setting is not configured.
-
-
-
-
-
+ Parameters
+
+
+
+ | Name |
+ Mandatory |
+ Type |
+ Description |
+
+
+
+
+ | module |
+ yes |
+ string |
+
+
+ The module of the settings. May be an empty string ('').
+
+
+ |
+
+
+ | setting |
+ yes |
+ string |
+
+
+ The name of the setting to retrieve.
+
+
+ |
+
+
+ | default |
+ yes |
+ string |
+
+
+ A default value which is used when the setting is not configured.
+
+
+ |
+
+
+
+
+
Result
+
Result type
+
string
+
Description
+
+
+ The value of the setting or the default value if the setting is not configured.
+
+
+
+
+
+ The module of the settings. At the moment this corresponds to the name of the file
+ in the conf directory. The empty string as value corresponds to the
+ global.xml file.
+ The name of the setting to retrieve.
+ The value to use if there is no entry for the setting in the settings file.
+ A node from the layout template which overrides the value from the configuration.
-
-
-
-
-
- The module of the settings. At the moment this corresponds to the name of the file
- in the conf directory. The empty string as value corresponds to the
- global.xml file.
-
-
-
-
- The name of the setting to retrieve.
-
-
-
-
- The value to use if there is no entry for the setting in the settings file.
-
-
-
-
- A node from the layout template which overrides the value from the configuration.
-
-
-
-
-
- The value of the requested setting or if no value has been set the provided default
- value. If no default value has been provided the result is an empty string.
-
-
-
- This function retrieves the value of a setting from the theme configuration. For
- more informations about the configuration system of Foundry please refer to the
- configuration section of the Foundry documentation.
-
-
-
-
+ The value of the requested setting or if no value has been set the provided default
+ value. If no default value has been provided the result is an empty string.
-
- Function foundry:get-static-text
-
-
+ This function retrieves the value of a setting from the theme configuration. For
+ more informations about the configuration system of Foundry please refer to the
+ configuration section of the Foundry documentation.
-
-
-
-
-
-
+
+
+ Function foundry:get-static-text
+
+
Retrieves at static text. For more informations about static texts in Foundry please
refer to the static texts section in the Foundry documentation.
-
-
-
-
-
-
-
- Parameters
-
-
-
-
-
- |
-
- | Name |
-
- Mandatory |
-
- Type |
-
- Description |
-
-
-
-
-
-
-
-
-
- |
- module
-
- |
-
-
- yes
-
- |
-
-
- string
-
- |
-
-
-
-
- he module of the settings. At the moment this corresponds to the name of the file
- in the texts directory. The empty string as value corresponds to the
- global.xml file.
-
-
-
- |
-
-
-
-
- |
- id
-
- |
-
-
- yes
-
- |
-
-
- string
-
- |
-
-
-
-
- |
-
-
-
-
- |
- lang
-
- |
-
-
- no
-
- |
-
-
- string
-
- |
-
-
-
-
- The language to retrieve. Normally there is no need to set this parameter because
- it is determined automatically.
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
Result
-
-
Result type
-
-
- string
-
-
-
-
Description
-
-
-
-
- The requested static text. If there is no value for the requested static text in the
- module provided by the module parameter the value depends if the debug mode is
- enabled or not. If the debug mode is not not enabled the result is an empty
- string. If the debug mode is enabled, a identifier of the text (the value of the
- id parameter) is displayed. If you point the mouse pointer of the
- placeholder, the complete path of the text is shown as hovering box.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Function foundry:debug-enabled
-
-
-
-
-
-
-
-
-
+
Parameters
+
+
+
+ | Name |
+ Mandatory |
+ Type |
+ Description |
+
+
+
+
+ | module |
+ yes |
+ string |
+
+
+ The module of the settings. At the moment this corresponds to the name of the file
+ in the texts directory. The empty string as value corresponds to the
+ global.xml file.
+
+
+ |
+
+
+ | id |
+ yes |
+ string |
+
+
+ The name of the text to retrieve.
+
+
+ |
+
+
+ | lang |
+ no |
+ string |
+
+
+ The language to retrieve. Normally there is no need to set this parameter because
+ it is determined automatically.
+
+
+ |
+
+
+
+
+
Result
+
Result type
+
string
+
Description
+
+
+ The requested static text. If there is no value for the requested static text in the
+ module provided by the module parameter the value depends if the debug mode is
+ enabled or not. If the debug mode is not not enabled the result is an empty
+ string. If the debug mode is enabled, a identifier of the text (the value of the
+ id parameter) is displayed. If you point the mouse pointer of the
+ placeholder, the complete path of the text is shown as hovering box.
+
+
+
+
+
+
+
+ Function foundry:debug-enabled
+
+
A helper function to determine if the debug mode should be enabled. The debug mode
of foundry is automatically enabled if the theme is viewed as development theme.
-
-
-
-
-
-
-
-
-
-
Result
-
-
Result type
-
-
- any
-
-
-
-
Description
-
+
-
-
- true if the debug mode if active, false otherwise.
+
Result
+
Result type
+
any
+
Description
+
+
true if the debug mode if active, false otherwise.
+
+
+
+
+
+
+
+ Function foundry:parse-link
+
+
+ Helper template to adjust links. (Copied from Mandalay)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Function foundry:read-current-category
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Result
-
-
Result type
-
-
- any
-
-
-
-
Description
-
-
-
- The path of the current category.
-
-
-
+
Result
+
Result type
+
any
+
Description
+
+
+ The adjusted link.
+
+
+
-
-
-
-
-
-
+
+
+
+ Function foundry:read-current-category
+
+
+
Result
+
Result type
+
any
+
Description
+
+
+ The path of the current category.
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
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 5ed079dc4..69b4b606b 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
@@ -148,7 +148,6 @@
-
diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/bookmark.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/bookmark.xsl
index 11e7d6f32..12a397bbf 100644
--- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/bookmark.xsl
+++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/bookmark.xsl
@@ -28,6 +28,23 @@
exclude-result-prefixes="xsl xs bebop cms foundry nav ui"
version="2.0">
+
+ Tags for ccm-cms-types-bookmark
+
+
+ Tags for outputting data from the
+ ccm-cms-types-bookmark content type.
+
+
+
+
+
+
+
+ Outputs the description of a bookmark.
+
+
+
@@ -41,6 +58,14 @@
+
+
+
+ Extracts the URL of the bookmark and passes the URL to the child
+ tags.
+
+
+
@@ -58,6 +83,13 @@
+
+
+
+ Outputs the URL of the bookmark as text.
+
+
+
diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/contact.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/contact.xsl
index bde4d1516..64b7b3fb6 100644
--- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/contact.xsl
+++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/contact.xsl
@@ -28,6 +28,26 @@
exclude-result-prefixes="xsl xs bebop cms foundry nav ui"
version="2.0">
+
+
+ Tags for ccm-cms-types-contact
+
+
+
+ These tags are used to output the information of a contact
+ content item.
+
+
+
+
+
+
+
+ Root tag for displaying data from the person item which is
+ assigned to a contact item.
+
+
+
@@ -38,74 +58,41 @@
-
-
+
+
+
+ Root tag for outputting the contact entries of a contact.
+
+
+
+ tunnel="yes"
+ select="$contentitem-tree/contactentries"/>
+
+
+
+ This tag is used to output a specific contact entry.
+
+
+
+
+
+ The key of the contact entry to show. The tag itself does
+ not generate any output. It only extracts the informations
+ for the contact entry and passes them to its child tags.
+
+
+
+
@@ -123,12 +110,57 @@
+
+
+
+ Outputs the label of the contact entry as provided in data tree.
+
+
+
+
+
+
+ Outputs the data of the contact entry. If the value starts
+ with
+
+
+ -
+
http://
+
+ -
+
https://
+
+ -
+
www
+
+
+
+ and the autolink attribute is not set to
+ false the entry rendered as link, otherwise
+ as text.
+
+
+ Likewise if the value contains and @ character
+ and the autolink attribute is not set to
+ false the entry rendered as E-Mail link.
+
+
+
+
+
+ If set to true or if not present URLs
+ are automatically converted to HTML links. If set to
+ false URLs are displayed as text.
+
+
+
+
@@ -153,6 +185,15 @@
+
+
+
+ Outputs the value of a contact entry as link. This used if the
+ automatic link detection of the contact-entry-value
+ tag does not work.
+
+
+
@@ -161,6 +202,13 @@
+
+
+
+ Root tag for outputting the address assigned to contact item.
+
+
+
@@ -173,36 +221,84 @@
+
+
+
+ Outputs the address text property of an address assigned to
+ a contact item.
+
+
+
+
+
+
+ Outputs the postal code property of an address assigned to
+ a contact item.
+
+
+
+
+
+
+ Outputs the city property of an address assigned to
+ a contact item.
+
+
+
+
+
+
+ Outputs the state property of an address assigned to
+ a contact item.
+
+
+
+
+
+
+ Outputs the country property of an address assigned to
+ a contact item.
+
+
+
+
+
+
+ Outputs the iso country code property of an address assigned to
+ a contact item.
+
+
+
diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/event.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/event.xsl
index 7c95bd9da..c3b8be850 100644
--- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/event.xsl
+++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/event.xsl
@@ -28,6 +28,25 @@
exclude-result-prefixes="xsl xs bebop cms foundry nav ui"
version="2.0">
+
+
+ Tags for ccm-cms-types-event
+
+
+
+ This tags are used to output the values of special properties
+ of the Event type provided by the ccm-cms-types-event module.
+
+
+
+
+
+
+
+ Outputs the start date of an event.
+
+
+
@@ -48,6 +67,13 @@
+
+
+
+ Outputs the end date of an event.
+
+
+
@@ -68,6 +94,13 @@
+
+
+
+ Outputs the start time of an event.
+
+
+
@@ -88,6 +121,13 @@
+
+
+
+ Outputs the end time of an event.
+
+
+
@@ -108,6 +148,13 @@
+
+
+
+ Outputs the value of teh location property of an event.
+
+
+
@@ -117,6 +164,13 @@
+
+
+
+ Outputs the value of the location text property of an event.
+
+
+
@@ -132,6 +186,13 @@
+
+
+
+ Outputs the value of the main contributor property of an event.
+
+
+
@@ -141,6 +202,14 @@
+
+
+
+ Outputs the value of the main contributor text property of an
+ event.
+
+
+
@@ -157,6 +226,13 @@
+
+
+
+ Outputs the value of the date addendum property of an event.
+
+
+
@@ -166,6 +242,13 @@
+
+
+
+ Outputs the value of the event date addendum text of an event.
+
+
+
diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/data-tags.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/data-tags.xsl
index 77056bc07..65e6e1951 100644
--- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/data-tags.xsl
+++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/data-tags.xsl
@@ -28,7 +28,8 @@
Data tags
- These tags can be used to display several informations from the XML provided by CCM.
+ These tags can be used to display several informations from the
+ XML provided by CCM.
@@ -53,12 +54,13 @@
- Outputs a static text which is retrieved from a file in the texts
- directory. If the module attribute is not present, the
- texts/global.xml file is used. Otherwise the file provided by the
- module element ist used. The key is the content
- of the element. If at least one of the attributes id, class
- or with-colorset is present at the attribute, the text is wrapped in a
+ Outputs a static text which is retrieved from a file in the
+ texts directory. If the module attribute
+ is not present, the texts/global.xml file is used.
+ Otherwise the file provided by the module element ist used. The key
+ is the content of the element. If at least one of the attributes
+ id, class or with-colorset is
+ present at the attribute, the text is wrapped in a
span element.
diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/language.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/language.xsl
index d3cbdc21c..20825bb05 100644
--- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/language.xsl
+++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/language.xsl
@@ -31,11 +31,67 @@
exclude-result-prefixes="xsl xs bebop cms foundry nav ui"
version="2.0">
+
+ Language selector
+
+
+ The tags provided by this file can be used to create a language
+ selector control which allow the visitor of a site to switch
+ the language of the site manually. As usual, the tags itself
+ to not generate much HTML. Instead they only extract several
+ parameters from the data tree XML from CCM and pass it to their
+ child tags. The HTML for the language selector is completly
+ definied by the designer.
+
+
+ An example for a language selector:
+
+
+ <language-selector>
+ <ul>
+ <language>
+ <li>
+ <a>
+ <span>
+ <language-name>
+ </span>
+ </a>
+ </li>
+ </language>
+ </ul>
+ </language-selector>
+
+
+ In the example above all available languages are put into a
+ <ul>. The URL/value for the href
+ of the <a> element in provided by the
+ surrounding <language> tag, therefore the
+ <a> element in the example has no
+ href attribute. The name of the language is put
+ into a <span> to make formatting easier.
+
+
+
+
+
+
+
+ Root tag for a language selector control.
+
+
+
-
+
+
+
+ Encloses the HTML for one specific language entry in a language
+ selector.
+
+
+
@@ -53,6 +109,13 @@
+
+
+
+ Outputs the name of the current language.
+
+
+
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 f85ab88a3..7408f0fed 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
@@ -35,8 +35,8 @@
Loaders
- This tags are used to load resources required by the generated HTML documents,
- for example CSS files and JavaScript files.
+ This tags are used to load resources required by the generated
+ HTML documents, for example CSS files and JavaScript files.
@@ -322,6 +322,20 @@
+
+
+
+ This tag can be used to load the
+ Fancybox
+ gallery component. The tag includes all JavaScript files
+ and CSS files needed by Fancybox.
+
+
+ Fancybox is based on jQuery, therefore it is necessary
+ to include jQuery also.
+
+
+