Michel_ VIP
Total posts: 61
02 Sep 2015 17:24

Cobalt use Joomla standard message when an item is successfully submitted.

Is it possible to customize / hack Cobalt to display a specific message according to the section ?

Thanks for help.

Regards.

Last Modified: 04 Sep 2015


pepperstreet VIP
Total posts: 3,837
04 Sep 2015 03:04

Hello Michel_,

no need to "hack" ;) You can change message and language strings by configuration. Per type. You have to use the build-in Joomla language Override feature. Just add your NEW language CONSTANTS and values to your current site language.
By default it uses the following J! CONSTANTS. The 1st is for new items, the 2nd for edited/saved items:

JLIB_APPLICATION_SUBMIT_SAVE_SUCCESS
JLIB_APPLICATION_SAVE_SUCCESS

You might change the prefix parameter to MYSECTION1 or MYTYPE1.
Then add the new CONSTANTS in language override manager e.g.:

MYTYPE1_SUBMIT_SAVE_SUCCESS
MYTYPE2_SUBMIT_SAVE_SUCCESS
MYTYPE3_SUBMIT_SAVE_SUCCESS
etc.

Messages

See YourType -> Submission Behaviour

mj_cob_type_submission_messages_prefix


Notifications & Events

See YourSection -> Properties (scroll down, last parameter)
This allows you to change the singular "item label" in notifications. i.e. instead of "item" you might want to use "product" or "entry" etc.

mj_cob_section_param_notification_item_title


Michel_ VIP
Total posts: 61
04 Sep 2015 09:07

I I works fine.

Many thanks.

Powered by Cobalt