WebMake Documentation (version 1.1)

The <metadefault> Tag

Metadata is usually embedded inside a content item using the <wmmeta> tag. However, this can be a chore for lots of content items, so to make things easier, you can specify a default metadata using the <metadefault> tag.

Specify this tag before the content items in question, and those content items will all be tagged with the metadata you set.

Like the attrdefault tag, this tag can be used either in a scoped mode, or in a command mode.

Scoped Mode

"Scoped" mode uses opening (<metadefault>) and closing (</metadefault>) tags; the metadata is only set on content items between the two tags.

Note! one warning about "scoped" mode: note that WebMake does not use a fully-correct XML parser to parse the XML in the .wmk file, so if you nest <metadefault> tags, it will not correctly parse them; instead, the first closing </metadefault> tag found will be used.

Command Mode

Command mode uses standalone tags (<metadefault ... />); the metadata are set until the end of the WebMake file, or until you change them with another <metadefault> tag.

Attributes

name

the metadatum's name, e.g. Title, Section, etc. This is required.

value

the metadatum's value. This is optional. If the value is not specified, the metadatum will be removed from the list of default metadata.

WebMake Documentation (version 1.1)