Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
assign_products.phtml
Go to the documentation of this file.
1 <?php
10 $blockGrid = $block->getBlockGrid();
11 $gridJsObjectName = $blockGrid->getJsObjectName();
12 ?>
13 <?= $block->getGridHtml() ?>
14 <input type="hidden" name="category_products" id="in_category_products" data-form-part="category_form" value="" />
15 <script type="text/x-magento-init">
16  {
17  "*": {
18  "Magento_Catalog/catalog/category/assign-products": {
19  "selectedProducts": <?= /* @escapeNotVerified */ $block->getProductsJson() ?>,
20  "gridJsObjectName": <?= /* @escapeNotVerified */ '"' . $gridJsObjectName . '"' ?: '{}' ?>
21  }
22  }
23  }
24 </script>
25 <!-- @todo remove when "UI components" will support such initialization -->
26 <script>
27  require('mage/apply/main').apply();
28 </script>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
$gridJsObjectName
jquery extjs ext tree mage adminhtml form
Definition: tree.phtml:41
$block
Definition: block.php:8