Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

The promo block functionality allows to show ads in desired locations on website. To use it:

  1. create promo block group (analog to zone) in the "Website & Content > Promo Blocks" section in Admin Console
  2. go to the "Website & Content > Promo Blocks > Your Promo Block Group" section, that was created in Admin Console
  3. add promo blocks (analog to ads) to the promo block group
  4. in the "Website & Content > Structure & Data" section specify which promo block group is associated with each website page\

Once created the promo blocks can be moved to another group using following control:

In some cases however developer might want to prevent users from moving mission critical content blocks out of their associated promo block groups. To make that happen the "promo_blocks/promo_block_edit.tpl" template needs to changed like so:

<!-- old code -->
<inp2:m_RenderElement name="inp_edit_options" prefix="promo-block" field="PromoBlockGroupId" title="la_fld_PromoBlockGroup" has_empty="1"/>
 
<!-- new code -->
<inp2:m_RenderElement name="inp_label" prefix="promo-block" field="PromoBlockGroupId" title="la_fld_PromoBlockGroup"/>

In that case however instead of seeing "Default Group" text (as on picture above) the promo block group ID is displayed instead:

This happens because "formatter" field option is missing on the "PromoBlockGroupId" field of the "promo-block" unit.

Solution

  1. add the "formatter" option with "kOptionsFormatter" to the "PromoBlockGroupId" field of the "promo-block" unit.

Related Tasks

  • No labels