blog_post_relatedposts.xml 1.2 KB

1234567891011121314151617181920212223
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © 2015 Ihor Vansach (ihor@magefan.com). All rights reserved.
  5. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  6. *
  7. * Glory to Ukraine! Glory to the heroes!
  8. */
  9. -->
  10. <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
  11. <container name="root" label="Root">
  12. <block class="Magefan\Blog\Block\Adminhtml\Post\Edit\Tab\RelatedPosts" name="blog.post.edit.tab.relatedposts"/>
  13. <block class="Magento\Backend\Block\Widget\Grid\Serializer" name="relatedposts_grid_serializer">
  14. <arguments>
  15. <argument name="input_names" xsi:type="string">position</argument>
  16. <argument name="grid_block" xsi:type="string">blog.post.edit.tab.relatedposts</argument>
  17. <argument name="callback" xsi:type="string">getSelectedRelatedPosts</argument>
  18. <argument name="input_element_name" xsi:type="string">links[relatedposts]</argument>
  19. <argument name="reload_param_name" xsi:type="string">posts_related</argument>
  20. </arguments>
  21. </block>
  22. </container>
  23. </layout>