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

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

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?