The promo block functionality allows to show ads in desired locations on website. To use it:
- create promo block group (analog to zone) in the "Website & Content > Promo Blocks" section in Admin Console
- go to the "Website & Content > Promo Blocks > Your Promo Block Group" section, that was created in Admin Console
- add promo blocks (analog to ads) to the promo block group
- 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
- add the "formatter" option with "kOptionsFormatter" to the "PromoBlockGroupId" field of the "promo-block" unit.