You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

projectdoc Toolbox

Export document properties as metadata to the rendered HTML page.

Tags
Since
1.10

The properties of a document can be exported as metadata on an HTML page easily.

To enable the rendering as metadata, add some Velocity statements to the 'Main Layout'.

#if ($projectdocContext)
${projectdocContext.toHtml($sitemeshPage)}
#end

To add the snippet, follow the following steps:

  1. As admin user, select 'Layout' in the 'General configuration'
  2. Then click 'Create custom' (if you have not already applied changes to the layout) or 'Edit' (if there are already changes to the default provided by Confluence)
  3. Finally add the above snippet after the rendering of the meta elements
  4. Save the changes

Resources

Information on exporting metadata.

Add HTML Meta Tags
Add HTML meta tags to your Confluence pages. This is for the search engine optimization (SEO) for your website as well as adding semantics for machine reading.
export
Exports the property as metadata.
Export Metadata
Export document properties as metadata to the rendered HTML page.
export-schema
Exports the property as schema information.
Metadata Sets
Controls to render sets of metadata based on document properties.

  • No labels