diff --git a/applications/content/template/HelpTemplate.ftl b/applications/content/template/HelpTemplate.ftl index 8a38336a53..ec91bbb090 100644 --- a/applications/content/template/HelpTemplate.ftl +++ b/applications/content/template/HelpTemplate.ftl @@ -34,16 +34,6 @@ under the License. <@itemizedlist node=child/> <#elseif child?node_type = 'element' && child?node_name = "mediaobject"> <@mediaobject node=child/> - <#elseif child?node_type = 'element' && child?node_name = "caution"> - ${child} - <#elseif child?node_type = 'element' && child?node_name = "important"> - ${child} - <#elseif child?node_type = 'element' && child?node_name = "note"> - ${child} - <#elseif child?node_type = 'element' && child?node_name = "tip"> - ${child} - <#elseif child?node_type = 'element' && child?node_name = "warning"> - ${child} @@ -51,7 +41,7 @@ under the License. <#macro section inSection level first="no"> <#list inSection.* as subSection> <#if subSection?node_name = "title"> - <#if first = "yes"> + <#if first = "yes">

${subSection}

<#else>
${subSection} @@ -65,6 +55,16 @@ under the License. <@orderedlist node=subSection/> <#elseif subSection?node_name = "itemizedlist"> <@itemizedlist node=subSection/> + <#elseif subSection?node_name = "caution"> + <@admonition node=subSection/> + <#elseif subSection?node_name = "important"> + <@admonition node=subSection/> + <#elseif subSection?node_name = "note"> + <@admonition node=subSection/> + <#elseif subSection?node_name = "tip"> + <@admonition node=subSection/> + <#elseif subSection?node_name = "warning"> + <@admonition node=subSection/> @@ -107,6 +107,16 @@ under the License. <@text text=para/> +<#macro admonition node> + <#list node.* as subSection> + <#if subSection?node_name = "title"> +

${subSection}

+ <#elseif subSection?node_name = "para"> +

<@para para=subSection/>

+ + + +
diff --git a/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml b/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml index 84615ad7f5..21dbb54e30 100644 --- a/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml +++ b/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml @@ -49,10 +49,24 @@ under the License.
Examples of text formatting - Here is a caution text - Here is an important text - Here is a note - Here is a tip - Here is a warning + + Caution title + Here is a caution text + + + Important title + Here is an important text + + + Note title + Here is a note + + + Tip title + Here is a tip + + + Here is a warning +