? Success

User tests: Successful: Unsuccessful:

avatar demis-palma
demis-palma
11 Feb 2015

As long as at least one post-install message associated to Joomla exists, the control panel displays a warning and leads to com_postinstall.
There, all messages as shown, regardless of they are associated to Joomla or 3rd party extensions.
However, as soon as all the Joomla related messages are marked as read, the control panel no longer indicates that other post-installation messages are present.
Messages associated to 3rd party extension will not be notified in the control panel until at least one message associated to Joomla will added again.

f3dfdf5 30 Jun 2014 avatar demis-palma test
avatar demis-palma demis-palma - open - 11 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - change - 11 Feb 2015
Labels Added: ?
avatar demis-palma
demis-palma - comment - 11 Feb 2015

Help. It seems that in this pull request I have included some outdated commits. How to remove them?

avatar Bakual
Bakual - comment - 11 Feb 2015

Easiest is to just create a new clean branch and a new PR from there.

Personally I would argue that the cPanel should only show a notification for Joomla messages. And the extensions should show a notification for their own messages (which is simple to include). But I can understand your point of view as well.

avatar demis-palma
demis-palma - comment - 11 Feb 2015

Thanks, Bakual. I'll create a clear branch.
Can you please explain further "extensions should show a notification for their own messages"?
Do you mean by using post-install messages in a different way or using a different system for messages?

avatar zero-24 zero-24 - change - 12 Feb 2015
Easy No Yes
avatar zero-24 zero-24 - change - 12 Feb 2015
Category Administration Components
avatar demis-palma demis-palma - change - 13 Feb 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-02-13 18:56:32
avatar demis-palma demis-palma - close - 13 Feb 2015
avatar demis-palma demis-palma - close - 13 Feb 2015
avatar Bakual
Bakual - comment - 13 Feb 2015

If I were to use postinstall messages for my extension, I would include a notification similar to the cPanel one into the views of my extension.
It's only a few lines of code to do that notification text:
https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_cpanel/views/cpanel/view.html.php#L50-L59 in the view to check if there are messages and https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_cpanel/views/cpanel/tmpl/default.php#L32-L53 in the layout to show the message.
You need a line or two more to get the ID of your extension so you can adjust the eid in the calls. But other than that you can reuse that code.

avatar nikosdion
nikosdion - comment - 14 Feb 2015

You can also take a look in Akeeba Backup Core or Admin Tools Core. We use Post-installation Messages and we do show a notification inside our components based on whether there are published and active notifications.

Add a Comment

Login with GitHub to post a comment