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;
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:
If anyone could help, I would really appreciate
magento2 messages
add a comment |
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:
If anyone could help, I would really appreciate
magento2 messages
add a comment |
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:
If anyone could help, I would really appreciate
magento2 messages
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:
If anyone could help, I would really appreciate
magento2 messages
magento2 messages
edited Jul 8 at 1:12
Nuno Almeida
asked Jul 8 at 0:41
Nuno AlmeidaNuno Almeida
214 bronze badges
214 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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 :)
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 :)
add a comment |
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 :)
add a comment |
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 :)
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 :)
answered Jul 8 at 1:16
Nuno AlmeidaNuno Almeida
214 bronze badges
214 bronze badges
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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