Public Custom Field Flag

Released in 10.05.00

The 10.05.00 release adds a new boolean flag to all custom fields. A custom field can either be public or not public (private). The default value for all custom fields is not public, so you have to explicity set a field to be public.

What does "Public" Mean?

Public means that its value can be read using the runtime_XXX functions which don’t require any authentication. The data they return is public for anyone to view. Examples include:

These functions have the ability to return custom fields for products/categories.

Use Case

For example, you may have a custom product field for internal cost that you track with each product. You would likely not want this custom field to be public. Alternatively, the Meta Fields module stores its data into a public custom field so its data is always available in the runtime_XXX functions.

XML Provisioning

A new “public” tag is now available within the XXXField_Add functions.

Looking for Developer Docs?

We have a whole section for that, including: Developer Training Series, Template Language docs, Module Development tutorials and much, much more.

Head to the Developer Section

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.


Copyright © 1997 – 2021 Miva©, Miva Merchant©, MivaPay©, MivaCon© Miva, Inc. All Rights Reserved.