How to add phtml file content after the form content in backendHow to pick data from a form into the backend?Include custom module block within phtml file?Magento:Upload file in ajax formMagento2 - How to fill a dropdown from backend configuration [Solved]How to add field to this formCall Div content from Separate phtmlreturn phtml file content in ajax response in magento2how to call phtml file in static block?How to add content to registration form? Magento 2.2How can I manage admin form via template in Magento2?
Are these reasonable traits for someone with autism?
Crossing US border with music files I'm legally allowed to possess
How to pull out the underlying query syntax being used by dataset?
Construct a word ladder
Is it possible to play as a necromancer skeleton?
What to do when you've set the wrong ISO for your film?
Ticket to ride, 1910: What are the big cities
Simple function that simulates survey results based on sample size and probability
How to use Palladio font in text body but Computer Modern for Equations?
German equivalent of the French expression "Mais de là à ..."
How to use " shadow " in pstricks?
Defining the standard model of PA so that a space alien could understand
Why do they consider the Ori false gods?
Why do Windows registry hives appear empty?
Were pens caps holes designed to prevent death by suffocation if swallowed?
Did people go back to where they were?
Why do Ryanair allow me to book connecting itineraries through a third party, but not through their own website?
Plot twist where the antagonist wins
Is real public IP Address hidden when using a system wide proxy in Windows 10?
Looking for a soft substance that doesn't dissolve underwater
Cipher Block Chaining - How do you change the plaintext of all blocks?
At what point in European history could a government build a printing press given a basic description?
Which is the common name of Mind Flayers?
Boss wants me to falsify a report. How should I document this unethical demand?
How to add phtml file content after the form content in backend
How to pick data from a form into the backend?Include custom module block within phtml file?Magento:Upload file in ajax formMagento2 - How to fill a dropdown from backend configuration [Solved]How to add field to this formCall Div content from Separate phtmlreturn phtml file content in ajax response in magento2how to call phtml file in static block?How to add content to registration form? Magento 2.2How can I manage admin form via template in Magento2?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have added form in the backend. At the end of the form I need to include a phtml content using it's block. How can we include phtml file after the form content?
magento2 admin forms
add a comment |
I have added form in the backend. At the end of the form I need to include a phtml content using it's block. How can we include phtml file after the form content?
magento2 admin forms
add a comment |
I have added form in the backend. At the end of the form I need to include a phtml content using it's block. How can we include phtml file after the form content?
magento2 admin forms
I have added form in the backend. At the end of the form I need to include a phtml content using it's block. How can we include phtml file after the form content?
magento2 admin forms
magento2 admin forms
asked Aug 29 '17 at 11:24
SIBHI SSIBHI S
1,12711536
1,12711536
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
You can try following code at the end of your phtml form
echo $this->getLayout()->createBlock("PathtoBlock")->setTemplate("Vendor_Module::your_template.phtml")->toHtml()
It comes in the top of the contents...not coming inside the form tab
– SIBHI S
Aug 29 '17 at 11:50
Please post your corresponding layout xml
– Vivek Kumar
Aug 29 '17 at 12:11
add a comment |
Add the following function to your block
public function getFormHtml()
$html = parent::getFormHtml();
$html .= $this->setTemplate('Vendor_Module::your_template.phtml')->toHtml();
return $html;
Don't forget to create the phmtl at Vendor/Module/view/adminhtml/templates/your_template.phtml
add a comment |
Add in the layout page for customer_index_edit.xml (add in xml file for edit)
<referenceContainer name="content">
<block class="MagentoCustomerBlockAdminhtmlEditTabView" name="customer_edit_tab_view" template="tab/view.phtml">
<block class="MagentoCustomerBlockAdminhtmlEditTabViewPersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>
</block>
<referenceContainer>
In tab/view.phtml you call function echo $block->getChildHtml();
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%2f191033%2fhow-to-add-phtml-file-content-after-the-form-content-in-backend%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can try following code at the end of your phtml form
echo $this->getLayout()->createBlock("PathtoBlock")->setTemplate("Vendor_Module::your_template.phtml")->toHtml()
It comes in the top of the contents...not coming inside the form tab
– SIBHI S
Aug 29 '17 at 11:50
Please post your corresponding layout xml
– Vivek Kumar
Aug 29 '17 at 12:11
add a comment |
You can try following code at the end of your phtml form
echo $this->getLayout()->createBlock("PathtoBlock")->setTemplate("Vendor_Module::your_template.phtml")->toHtml()
It comes in the top of the contents...not coming inside the form tab
– SIBHI S
Aug 29 '17 at 11:50
Please post your corresponding layout xml
– Vivek Kumar
Aug 29 '17 at 12:11
add a comment |
You can try following code at the end of your phtml form
echo $this->getLayout()->createBlock("PathtoBlock")->setTemplate("Vendor_Module::your_template.phtml")->toHtml()
You can try following code at the end of your phtml form
echo $this->getLayout()->createBlock("PathtoBlock")->setTemplate("Vendor_Module::your_template.phtml")->toHtml()
answered Aug 29 '17 at 11:33
Vivek KumarVivek Kumar
2,6852731
2,6852731
It comes in the top of the contents...not coming inside the form tab
– SIBHI S
Aug 29 '17 at 11:50
Please post your corresponding layout xml
– Vivek Kumar
Aug 29 '17 at 12:11
add a comment |
It comes in the top of the contents...not coming inside the form tab
– SIBHI S
Aug 29 '17 at 11:50
Please post your corresponding layout xml
– Vivek Kumar
Aug 29 '17 at 12:11
It comes in the top of the contents...not coming inside the form tab
– SIBHI S
Aug 29 '17 at 11:50
It comes in the top of the contents...not coming inside the form tab
– SIBHI S
Aug 29 '17 at 11:50
Please post your corresponding layout xml
– Vivek Kumar
Aug 29 '17 at 12:11
Please post your corresponding layout xml
– Vivek Kumar
Aug 29 '17 at 12:11
add a comment |
Add the following function to your block
public function getFormHtml()
$html = parent::getFormHtml();
$html .= $this->setTemplate('Vendor_Module::your_template.phtml')->toHtml();
return $html;
Don't forget to create the phmtl at Vendor/Module/view/adminhtml/templates/your_template.phtml
add a comment |
Add the following function to your block
public function getFormHtml()
$html = parent::getFormHtml();
$html .= $this->setTemplate('Vendor_Module::your_template.phtml')->toHtml();
return $html;
Don't forget to create the phmtl at Vendor/Module/view/adminhtml/templates/your_template.phtml
add a comment |
Add the following function to your block
public function getFormHtml()
$html = parent::getFormHtml();
$html .= $this->setTemplate('Vendor_Module::your_template.phtml')->toHtml();
return $html;
Don't forget to create the phmtl at Vendor/Module/view/adminhtml/templates/your_template.phtml
Add the following function to your block
public function getFormHtml()
$html = parent::getFormHtml();
$html .= $this->setTemplate('Vendor_Module::your_template.phtml')->toHtml();
return $html;
Don't forget to create the phmtl at Vendor/Module/view/adminhtml/templates/your_template.phtml
answered May 20 at 18:27
Ricardo SchafferRicardo Schaffer
112
112
add a comment |
add a comment |
Add in the layout page for customer_index_edit.xml (add in xml file for edit)
<referenceContainer name="content">
<block class="MagentoCustomerBlockAdminhtmlEditTabView" name="customer_edit_tab_view" template="tab/view.phtml">
<block class="MagentoCustomerBlockAdminhtmlEditTabViewPersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>
</block>
<referenceContainer>
In tab/view.phtml you call function echo $block->getChildHtml();
add a comment |
Add in the layout page for customer_index_edit.xml (add in xml file for edit)
<referenceContainer name="content">
<block class="MagentoCustomerBlockAdminhtmlEditTabView" name="customer_edit_tab_view" template="tab/view.phtml">
<block class="MagentoCustomerBlockAdminhtmlEditTabViewPersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>
</block>
<referenceContainer>
In tab/view.phtml you call function echo $block->getChildHtml();
add a comment |
Add in the layout page for customer_index_edit.xml (add in xml file for edit)
<referenceContainer name="content">
<block class="MagentoCustomerBlockAdminhtmlEditTabView" name="customer_edit_tab_view" template="tab/view.phtml">
<block class="MagentoCustomerBlockAdminhtmlEditTabViewPersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>
</block>
<referenceContainer>
In tab/view.phtml you call function echo $block->getChildHtml();
Add in the layout page for customer_index_edit.xml (add in xml file for edit)
<referenceContainer name="content">
<block class="MagentoCustomerBlockAdminhtmlEditTabView" name="customer_edit_tab_view" template="tab/view.phtml">
<block class="MagentoCustomerBlockAdminhtmlEditTabViewPersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>
</block>
<referenceContainer>
In tab/view.phtml you call function echo $block->getChildHtml();
answered May 21 at 9:26
Shekhar SumanShekhar Suman
147115
147115
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%2f191033%2fhow-to-add-phtml-file-content-after-the-form-content-in-backend%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