The Metadata Plugin
Metadata Management for Manila
 
Site last updated
2/24/2006; 12:33:21 PM
 
Home

Why

Features

FAQ

Updates

Documentation

Download

Developers

Bugs

Feedback

Discuss

Planned
Features

 
 

Macro Expansion

Author:   John VanDyk  
Posted: 6/7/2000; 2:29:40 PM
Topic: Macro Expansion
Msg #: 48 (top msg in thread)
Prev/Next: 47/49
Reads: 10920

Suppose that for some reason you want a metadata element named Title. You define it on the Managing Meta Types screen and the Metadata Plugin helpfully gives you a field called Title. The problem is, Manila already gives you a field called Subject. Now you have to type all your titles twice:

Dual Titles Screenshot: Two parallel fields.

Macro expansion means you can just type {title} in a metadata field and the title of the page will be substituted when you update that page.

Dual Titles With Macro Updated Screenshot: Two parallel fields using macros.

Now we've got to type {title} in each time. That's a pain. To make it really easy, set your default value to one of these macros (if you don't know how to set a default value for a metadata field, see Managing Meta Types).

In addition to {title} the special macro {member} expands to the name of the member who created the story.

Any legal Manila macro may be used.

Technical note: a new script, metaDataSuite.utils.qry_peekBuiltinMetaValue(), is used for getting built-in metadata values (such as postTime, subject, member, ctReads, etc.) from the message table.


There are responses to this message:


This page last updated Tuesday, October 31, 2000 at 3:19:53 PM. (10920)