Username Password
Bookmark and Share

Areas of Interest Rank Macro

^AOIRank(metadata property, [rank]);
This macro is for displaying which Assets are the most frequently viewed on your site, based on Metadata and Passive Profiling. To use the macro, you will need to enable Passive Profiling in the WebGUI Settings admin screen, and then add Metadata to the Assets in your site.

Here's an example:

Suppose you run a news site, and you want to know what kinds of news stories are the most popular. You enable Passive Profiling in the WebGUI Settings, then create a new Metadata field called "contentType". As your content managers add stories to the site, they also classify the stories by giving the Metadata field contentType a value, such as "Sports", "General Interest", "Regional", "Business", "Entertainment" and so on. Next, on a separate page of your site, you place these ^AOIRank() macro calls:

Most popular kind of story: ^AOIRank(contentType);
Second-most popular kind of story: ^AOIRank(contentType,2);
Third most popular kind of story: ^AOIRank(contentType,3);

By default, ^AOIRank(contentType); will always display the most popular Metadata property, which in our case is called contentType. If you wish to see which Metadata properties are lower ranked, pass the macro the rank that you want to see.

As users visit your site, each story they read will be counted up and added to the counter for the correct contentType. As you visit you separate page, you'll see the three most popular types of stories.

This Macro may be nested inside other Macros if the Metadata field does not contain commas or quotes.

Keywords: macro

Search | Most Popular | Recent Changes | Wiki Home
© 2022 Plain Black Corporation | All Rights Reserved