Miva Merchant SEO, eCommerce, Miva Modules, Custom Web Apps, and Miva Merchant troubleshooting.
miva certified developers

Scot's Scripts Support

Looking for something? Start typing here:

Scot's Blogger is used to created this support system.

How to Use Canonical Categories

last updated

When you set a canonical category in the "more options" dropdown when editing a post, the canonical category is automatically used in meta and microdata.

However if you want to use it yourself and are not at version 3.214, you can load the canonical category manually like this.

<mvt:do file="g.smr_libpath $ 'cats.mvc'" name="l.settings:canonical_category" value="get_cat_info(l.info:canonical_category)" />

Then you can use these variables (and other category data) for creating bookmarks and such.


In version 3.214 and later, the canonical category data is automatically in the message structure using the same variable names as above.