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

 
 

showCount() macro

Author:   John VanDyk  
Posted: 8/20/2001; 1:00:50 PM
Topic: showCount() macro
Msg #: 851 (top msg in thread)
Prev/Next: 850/852
Reads: 6298

The showCount() macro is very simple. It tells you the number of times a metadata value occurs in a meta type. For example, you can find out the number of times the keyword possum occurs in your keywords meta type.

Here's the syntax:

{metadatamacros.showCount("keywords","apple")}

It also has an optional flag that suppresses the result if the result is zero:

{metadatamacros.showCount("Section","Features","suppressIfZero:true")}

If we have no pages in the features section, an empty string will be returned; otherwise, the number of pages in the features section will be returned.

This macro works only with meta types for which you have turned on indexing.


This page last updated Monday, August 20, 2001 at 1:01:07 PM. (6298)