Custom message after plugin installation
After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin parameters.
/plugins/system/my_plugin/manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="3.8" group="system" method="upgrade">
<name>PLG_NAME</name>
<description>PLG_DESCRIPTION</description>
/plugins/system/my_plugin/language/en-GB/en-GB.plg_system_my_plugin.sys.ini
PLG_DESCRIPTION="This text is shown after installation AND as description of enabled plugins"
Is it possible to shown a custom message after installation/update in the Extension Manager?
And only at this point.
Thanks in advance!
joomla-3.x plugin installation
add a comment |
After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin parameters.
/plugins/system/my_plugin/manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="3.8" group="system" method="upgrade">
<name>PLG_NAME</name>
<description>PLG_DESCRIPTION</description>
/plugins/system/my_plugin/language/en-GB/en-GB.plg_system_my_plugin.sys.ini
PLG_DESCRIPTION="This text is shown after installation AND as description of enabled plugins"
Is it possible to shown a custom message after installation/update in the Extension Manager?
And only at this point.
Thanks in advance!
joomla-3.x plugin installation
add a comment |
After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin parameters.
/plugins/system/my_plugin/manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="3.8" group="system" method="upgrade">
<name>PLG_NAME</name>
<description>PLG_DESCRIPTION</description>
/plugins/system/my_plugin/language/en-GB/en-GB.plg_system_my_plugin.sys.ini
PLG_DESCRIPTION="This text is shown after installation AND as description of enabled plugins"
Is it possible to shown a custom message after installation/update in the Extension Manager?
And only at this point.
Thanks in advance!
joomla-3.x plugin installation
After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin parameters.
/plugins/system/my_plugin/manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="3.8" group="system" method="upgrade">
<name>PLG_NAME</name>
<description>PLG_DESCRIPTION</description>
/plugins/system/my_plugin/language/en-GB/en-GB.plg_system_my_plugin.sys.ini
PLG_DESCRIPTION="This text is shown after installation AND as description of enabled plugins"
Is it possible to shown a custom message after installation/update in the Extension Manager?
And only at this point.
Thanks in advance!
joomla-3.x plugin installation
joomla-3.x plugin installation
asked Dec 6 at 9:39
sbruemmer
232
232
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Yes, it is absolutely possible. You have to create/use an install script.php
file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:
For a module, a script class would look like this:
class mod_helloWorldInstallerScript
{
public function __construct(JAdapterInstance $adapter)
{
// construct here... it could be left empty
}
/*
install, update, preflight... functions here
*/
/**
* Called on installation
*/
public function install(JAdapterInstance $adapter)
{
echo 'Your custom message on installation';
}
// In this function you can also display your custom message in
// the Extension Manager after install ie.
function postflight($type, $parent)
{
echo '<p>Anything here happens after the installation/update/uninstallation of the module</p>';
echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');
}
}
Same for plugins... except you call the class: plg_mypluginInstallerScript
You can study this subject more here: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file
or here at the bottom of this page:
https://docs.joomla.org/Manifest_files
Perfectly and incredible fast answered! Thank you.
– sbruemmer
Dec 6 at 11:30
You're welcome! :) Thanks for the feedback!
– Zollie
Dec 6 at 12:14
The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352
– mickmackusa
Dec 7 at 2:06
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "555"
};
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
},
noCode: 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%2fjoomla.stackexchange.com%2fquestions%2f23889%2fcustom-message-after-plugin-installation%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
Yes, it is absolutely possible. You have to create/use an install script.php
file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:
For a module, a script class would look like this:
class mod_helloWorldInstallerScript
{
public function __construct(JAdapterInstance $adapter)
{
// construct here... it could be left empty
}
/*
install, update, preflight... functions here
*/
/**
* Called on installation
*/
public function install(JAdapterInstance $adapter)
{
echo 'Your custom message on installation';
}
// In this function you can also display your custom message in
// the Extension Manager after install ie.
function postflight($type, $parent)
{
echo '<p>Anything here happens after the installation/update/uninstallation of the module</p>';
echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');
}
}
Same for plugins... except you call the class: plg_mypluginInstallerScript
You can study this subject more here: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file
or here at the bottom of this page:
https://docs.joomla.org/Manifest_files
Perfectly and incredible fast answered! Thank you.
– sbruemmer
Dec 6 at 11:30
You're welcome! :) Thanks for the feedback!
– Zollie
Dec 6 at 12:14
The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352
– mickmackusa
Dec 7 at 2:06
add a comment |
Yes, it is absolutely possible. You have to create/use an install script.php
file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:
For a module, a script class would look like this:
class mod_helloWorldInstallerScript
{
public function __construct(JAdapterInstance $adapter)
{
// construct here... it could be left empty
}
/*
install, update, preflight... functions here
*/
/**
* Called on installation
*/
public function install(JAdapterInstance $adapter)
{
echo 'Your custom message on installation';
}
// In this function you can also display your custom message in
// the Extension Manager after install ie.
function postflight($type, $parent)
{
echo '<p>Anything here happens after the installation/update/uninstallation of the module</p>';
echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');
}
}
Same for plugins... except you call the class: plg_mypluginInstallerScript
You can study this subject more here: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file
or here at the bottom of this page:
https://docs.joomla.org/Manifest_files
Perfectly and incredible fast answered! Thank you.
– sbruemmer
Dec 6 at 11:30
You're welcome! :) Thanks for the feedback!
– Zollie
Dec 6 at 12:14
The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352
– mickmackusa
Dec 7 at 2:06
add a comment |
Yes, it is absolutely possible. You have to create/use an install script.php
file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:
For a module, a script class would look like this:
class mod_helloWorldInstallerScript
{
public function __construct(JAdapterInstance $adapter)
{
// construct here... it could be left empty
}
/*
install, update, preflight... functions here
*/
/**
* Called on installation
*/
public function install(JAdapterInstance $adapter)
{
echo 'Your custom message on installation';
}
// In this function you can also display your custom message in
// the Extension Manager after install ie.
function postflight($type, $parent)
{
echo '<p>Anything here happens after the installation/update/uninstallation of the module</p>';
echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');
}
}
Same for plugins... except you call the class: plg_mypluginInstallerScript
You can study this subject more here: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file
or here at the bottom of this page:
https://docs.joomla.org/Manifest_files
Yes, it is absolutely possible. You have to create/use an install script.php
file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:
For a module, a script class would look like this:
class mod_helloWorldInstallerScript
{
public function __construct(JAdapterInstance $adapter)
{
// construct here... it could be left empty
}
/*
install, update, preflight... functions here
*/
/**
* Called on installation
*/
public function install(JAdapterInstance $adapter)
{
echo 'Your custom message on installation';
}
// In this function you can also display your custom message in
// the Extension Manager after install ie.
function postflight($type, $parent)
{
echo '<p>Anything here happens after the installation/update/uninstallation of the module</p>';
echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');
}
}
Same for plugins... except you call the class: plg_mypluginInstallerScript
You can study this subject more here: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file
or here at the bottom of this page:
https://docs.joomla.org/Manifest_files
edited Dec 6 at 19:27
mickmackusa
1,4291225
1,4291225
answered Dec 6 at 9:54
Zollie
656112
656112
Perfectly and incredible fast answered! Thank you.
– sbruemmer
Dec 6 at 11:30
You're welcome! :) Thanks for the feedback!
– Zollie
Dec 6 at 12:14
The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352
– mickmackusa
Dec 7 at 2:06
add a comment |
Perfectly and incredible fast answered! Thank you.
– sbruemmer
Dec 6 at 11:30
You're welcome! :) Thanks for the feedback!
– Zollie
Dec 6 at 12:14
The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352
– mickmackusa
Dec 7 at 2:06
Perfectly and incredible fast answered! Thank you.
– sbruemmer
Dec 6 at 11:30
Perfectly and incredible fast answered! Thank you.
– sbruemmer
Dec 6 at 11:30
You're welcome! :) Thanks for the feedback!
– Zollie
Dec 6 at 12:14
You're welcome! :) Thanks for the feedback!
– Zollie
Dec 6 at 12:14
The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352
– mickmackusa
Dec 7 at 2:06
The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352
– mickmackusa
Dec 7 at 2:06
add a comment |
Thanks for contributing an answer to Joomla 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2fjoomla.stackexchange.com%2fquestions%2f23889%2fcustom-message-after-plugin-installation%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