Block menu
If a subtype key is added with the menu
value in the block manifest section - the menu will automatically be filled with sections of the current catalogue when adding a block inside a online store.
Aside from 'subtype', the block section must contain the subtype_params key with the following parameters:
'block' => array( 'name' => 'Menu with logo to the left and menu items to the right', 'section' => 'menu', 'subtype' => 'menu', 'subtype_params' => array( 'selector' => '.landing-block-node-menu-list-item-link', 'count' => 5, 'source' => 'catalog', ) ),Where:
- selector - direct selector of the menu item tag (tag a).
- count - limitation of the number of added dynamic items (required, 5 by default).
- source - data source; as of now, only catalog is supported.
Attention: When a menu block is added to a simple landing page (not to an online store) this subtype will be ignored.
© «Bitrix24», 2001-2024