Quantcast
Viewing all articles
Browse latest Browse all 1893

Joomla! 4.x Coding • Re: expand COM_CONTENT_SAVE_SUCCESS="Article saved."

....

foreach ($messages as $k => $message)
{
// Match and replace the message in question.
if ($message['message'] === $app->getLanguage()->_('COM_CONTENT_SAVE_SUCCESS'))
{
$message['message'] = $app->getLanguage()->_(sprintf('PLG_SYSTEM_EXAMPLE_SAVE_SUCCESS', $timestamp));
}

// Repopulate the message queue.
$app->enqueueMessage($message['message'], $message['type']);
}[/code]...
Hello SharkyKZ,

I want to inform you, that I now have a little Plugin running, that does the job.

I thank You for the code, because it is a central part of my plugin.
The output is now like this:Image may be NSFW.
Clik here to view.
Image

Statistics: Posted by hgh-esn — Sat Nov 09, 2024 9:03 pm



Viewing all articles
Browse latest Browse all 1893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>