Magento addComplexSuccessMessage on admin moduleCan not delete notifications or messages from the admin notifications inboxHow can i rewrite TierPrice Block in Magento2What's your way of debugging xml related exceptions?Uncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2Magento 2 declaring modifier PHP Fatal Error: null given in $modifiersCannot export list of customer from the grid magento 2Magento 2 Create new “Catalog Input Type for Store Owner” AttributeMsrpPriceCalculator ExceptionHow to create custom form in Magento 2.2.3(MagentoFrameworkConfigDomValidationException): Element 'remove': This element is not expected

Video editor for YouTube

Doing research in academia and not liking competition

Was Willow's first magic display (blazing arrow through arm) actual magic, and if not, what's the trick?

What do these three diagonal lines that cross through three measures and both staves mean, and what are they called?

Project Euler, problem # 9, Pythagorean triplet

Cauchy reals and Dedekind reals satisfy "the same mathematical theorems"

Why did Spider-Man take a detour to Dorset?

Is this more than a packing puzzle?

Why are road bikes (not time trial bikes) used in many triathlons?

How to get bold version of blackboard bold fonts?

If a player tries to persuade somebody, what should that creature roll not to be persuaded?

Why use null function instead of == [] to check for empty list in Haskell?

What are "full piece" and "half piece" in chess?

Do First Order blasters maintain a record of when they were fired?

Why run a service as a system user?

Why do legislative committees exist?

Why does FFmpeg choose 10+20+20 ms instead of an even 16 ms for 60 fps GIF images?

Remove cardinal direction letters

I do not have power to all my breakers

Should I be able to keep my company purchased standing desk when I leave my job?

What do mathematicians mean when they say some conjecture can’t be proven using the current technology?

What is the technical explanation of the note "A♭" in a F7 chord in the key of C?

Teferi's Time Twist on creature with +1/+1 counter

Using two linked programs, output ordinal numbers up to n



Magento addComplexSuccessMessage on admin module


Can not delete notifications or messages from the admin notifications inboxHow can i rewrite TierPrice Block in Magento2What's your way of debugging xml related exceptions?Uncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2Magento 2 declaring modifier PHP Fatal Error: null given in $modifiersCannot export list of customer from the grid magento 2Magento 2 Create new “Catalog Input Type for Store Owner” AttributeMsrpPriceCalculator ExceptionHow to create custom form in Magento 2.2.3(MagentoFrameworkConfigDomValidationException): Element 'remove': This element is not expected






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I'm trying to use the addComplexSuccessMessage function on admin custom module, but I get an empty message.



The code I have is the following:



/etc/di.xml



 <!-- Admin HTML Complex Messages -->
<type name="MagentoFrameworkViewElementMessageMessageConfigurationsPool">
<arguments>
<argument name="configurationsMap" xsi:type="array">
<item name="createDocumentSuccessMessage" xsi:type="array">
<item name="renderer" xsi:type="const">MagentoFrameworkViewElementMessageRendererBlockRenderer::CODE</item>
<item name="data" xsi:type="array">
<item name="template" xsi:type="string">Invoicing_Moloni::messages/createDocumentSuccessMessage.phtml</item>
</item>
</item>
</argument>
</arguments>
</type>


view/adminhtml/templates/messages/createDocumentSuccessMessage.phtml



<?php
// @codingStandardsIgnoreFile
/** @var MagentoFrameworkViewElementTemplate $block */
?>

<?= $block->escapeHtml(__(
'Document was sucessefuly created: <a href="%1">Open document</a>.',
$block->getData('document_url')),
['a']
);


Controller/Adminhtml/Documents/Create.php



$this->messageManager->addComplexSuccessMessage(
'createDocumentSuccessMessage',
[
'document_url' => $this->_url->getUrl('document/url')
]
);


I can't seem to understand why I get this empty message:
enter image description here



If anyone could help, I would really appreciate










share|improve this question






























    2















    I'm trying to use the addComplexSuccessMessage function on admin custom module, but I get an empty message.



    The code I have is the following:



    /etc/di.xml



     <!-- Admin HTML Complex Messages -->
    <type name="MagentoFrameworkViewElementMessageMessageConfigurationsPool">
    <arguments>
    <argument name="configurationsMap" xsi:type="array">
    <item name="createDocumentSuccessMessage" xsi:type="array">
    <item name="renderer" xsi:type="const">MagentoFrameworkViewElementMessageRendererBlockRenderer::CODE</item>
    <item name="data" xsi:type="array">
    <item name="template" xsi:type="string">Invoicing_Moloni::messages/createDocumentSuccessMessage.phtml</item>
    </item>
    </item>
    </argument>
    </arguments>
    </type>


    view/adminhtml/templates/messages/createDocumentSuccessMessage.phtml



    <?php
    // @codingStandardsIgnoreFile
    /** @var MagentoFrameworkViewElementTemplate $block */
    ?>

    <?= $block->escapeHtml(__(
    'Document was sucessefuly created: <a href="%1">Open document</a>.',
    $block->getData('document_url')),
    ['a']
    );


    Controller/Adminhtml/Documents/Create.php



    $this->messageManager->addComplexSuccessMessage(
    'createDocumentSuccessMessage',
    [
    'document_url' => $this->_url->getUrl('document/url')
    ]
    );


    I can't seem to understand why I get this empty message:
    enter image description here



    If anyone could help, I would really appreciate










    share|improve this question


























      2












      2








      2


      1






      I'm trying to use the addComplexSuccessMessage function on admin custom module, but I get an empty message.



      The code I have is the following:



      /etc/di.xml



       <!-- Admin HTML Complex Messages -->
      <type name="MagentoFrameworkViewElementMessageMessageConfigurationsPool">
      <arguments>
      <argument name="configurationsMap" xsi:type="array">
      <item name="createDocumentSuccessMessage" xsi:type="array">
      <item name="renderer" xsi:type="const">MagentoFrameworkViewElementMessageRendererBlockRenderer::CODE</item>
      <item name="data" xsi:type="array">
      <item name="template" xsi:type="string">Invoicing_Moloni::messages/createDocumentSuccessMessage.phtml</item>
      </item>
      </item>
      </argument>
      </arguments>
      </type>


      view/adminhtml/templates/messages/createDocumentSuccessMessage.phtml



      <?php
      // @codingStandardsIgnoreFile
      /** @var MagentoFrameworkViewElementTemplate $block */
      ?>

      <?= $block->escapeHtml(__(
      'Document was sucessefuly created: <a href="%1">Open document</a>.',
      $block->getData('document_url')),
      ['a']
      );


      Controller/Adminhtml/Documents/Create.php



      $this->messageManager->addComplexSuccessMessage(
      'createDocumentSuccessMessage',
      [
      'document_url' => $this->_url->getUrl('document/url')
      ]
      );


      I can't seem to understand why I get this empty message:
      enter image description here



      If anyone could help, I would really appreciate










      share|improve this question
















      I'm trying to use the addComplexSuccessMessage function on admin custom module, but I get an empty message.



      The code I have is the following:



      /etc/di.xml



       <!-- Admin HTML Complex Messages -->
      <type name="MagentoFrameworkViewElementMessageMessageConfigurationsPool">
      <arguments>
      <argument name="configurationsMap" xsi:type="array">
      <item name="createDocumentSuccessMessage" xsi:type="array">
      <item name="renderer" xsi:type="const">MagentoFrameworkViewElementMessageRendererBlockRenderer::CODE</item>
      <item name="data" xsi:type="array">
      <item name="template" xsi:type="string">Invoicing_Moloni::messages/createDocumentSuccessMessage.phtml</item>
      </item>
      </item>
      </argument>
      </arguments>
      </type>


      view/adminhtml/templates/messages/createDocumentSuccessMessage.phtml



      <?php
      // @codingStandardsIgnoreFile
      /** @var MagentoFrameworkViewElementTemplate $block */
      ?>

      <?= $block->escapeHtml(__(
      'Document was sucessefuly created: <a href="%1">Open document</a>.',
      $block->getData('document_url')),
      ['a']
      );


      Controller/Adminhtml/Documents/Create.php



      $this->messageManager->addComplexSuccessMessage(
      'createDocumentSuccessMessage',
      [
      'document_url' => $this->_url->getUrl('document/url')
      ]
      );


      I can't seem to understand why I get this empty message:
      enter image description here



      If anyone could help, I would really appreciate







      magento2 messages






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 8 at 1:12







      Nuno Almeida

















      asked Jul 8 at 0:41









      Nuno AlmeidaNuno Almeida

      214 bronze badges




      214 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          1














          Found a couple things I was doing wrong.
          First, the messages folder must be inside the adminhtml/templates;
          Second, I was editing the etc/di.xml while I should be adding that code to etc/adminhtml/di.xml



          For all that have some problems with complexMessages, I'll leave this post :)






          share|improve this answer

























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f281096%2fmagento-addcomplexsuccessmessage-on-admin-module%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Found a couple things I was doing wrong.
            First, the messages folder must be inside the adminhtml/templates;
            Second, I was editing the etc/di.xml while I should be adding that code to etc/adminhtml/di.xml



            For all that have some problems with complexMessages, I'll leave this post :)






            share|improve this answer



























              1














              Found a couple things I was doing wrong.
              First, the messages folder must be inside the adminhtml/templates;
              Second, I was editing the etc/di.xml while I should be adding that code to etc/adminhtml/di.xml



              For all that have some problems with complexMessages, I'll leave this post :)






              share|improve this answer

























                1












                1








                1







                Found a couple things I was doing wrong.
                First, the messages folder must be inside the adminhtml/templates;
                Second, I was editing the etc/di.xml while I should be adding that code to etc/adminhtml/di.xml



                For all that have some problems with complexMessages, I'll leave this post :)






                share|improve this answer













                Found a couple things I was doing wrong.
                First, the messages folder must be inside the adminhtml/templates;
                Second, I was editing the etc/di.xml while I should be adding that code to etc/adminhtml/di.xml



                For all that have some problems with complexMessages, I'll leave this post :)







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 8 at 1:16









                Nuno AlmeidaNuno Almeida

                214 bronze badges




                214 bronze badges



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f281096%2fmagento-addcomplexsuccessmessage-on-admin-module%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form