Editable regions for Products

Evance has one reserved editable region for Product templates, but you may add more if you wish.

Editable regions are added to a page using the <ev:editable/> tag

Product "full description" content

Your Product template must include a fullDescription region.

    <ev:editable ref="fullDescription" />

Additional regions

You may add any number of additional sub-regions to your product templates. You have freedom over what you call your regions, but references should:

  • contain alpha-numeric characters, dashes or underscores
  • avoid the use of spaces
    <ev:editable ref="fullDescription" />
    <ev:editable ref="features" />

Placeholder content

Products have subtly different editable region requirements to Page Templates. You should avoid adding placeholder content in editable regions for the fullDescription region. However, additional editable regions on the page may contain placeholder content.

Dynamically generated regions

There may be instances where you need to dynamically generate editable regions for a product. The ref attribute for an <ev:editable> tag supports basic use of EvScript (output tags only), allowing you dynamically name references.

<?ev for (var asset of product.assets) { ?>
    <ev:editable ref="asset-{{ asset.id }}">
        <h3>{{ asset.title }}</h3>
        <p>{{ asset.description }}</p>
<?ev } ?>

Additional reading

See the following related articles:

COVID-19 NOTICE – Business as Usual
Evance continues to provide all services and support throughout this difficult period. See our full statement here