Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
categories.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11  <fieldset class="admin__fieldset" data-ui-id="category-selector">
12  <legend class="admin__legend"><span><?= $block->escapeHtml(__('Select Category')) ?></span></legend>
13  <div class="content content-category-tree">
14  <input type="hidden" name="categories" id="product_categories" value=""/>
15  <?php if ($block->getRoot()): ?>
16  <div class="jstree-default"></div>
17  <?php endif; ?>
18  </div>
19  </fieldset>
20 <?php if ($block->getRoot()): ?>
21  <script type="text/x-magento-init">
22  {
23  ".jstree-default": {
24  "categoryTree": {
25  "data": <?php /* @noEscape */
26  echo $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode($block->getTreeArray()); ?>,
27  "url": "<?php /* @noEscape */
28  echo $block->escapeUrl($block->getLoadTreeUrl()); ?>"
29  }
30  }
31  }
32 
33  </script>
34 <?php endif; ?>
$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
__()
Definition: __.php:13
$block
Definition: block.php:8
jquery ui
Definition: tree.phtml:41
if($block->getRoot()) if($block->getRoot()) endif