How to create new tasks placeholders for the toolbar? V4

chocofc1 11 Apr, 2012
I have been searching for this but could not find anything.

I am using Joomla 2.5.4 and ChronoConnectivity V4 RC2

Since there is a toolbar already I would like to keep adding some buttons to it.

A simple button that I would need is to open a joomla content article.

Another one would be a "Mark all/selected as Interested / Not interested" or "Mark all/selected as Made 1st call" which would make a simple database query.

Thank you
Max_admin 11 Apr, 2012
Hi,

You may do this in 2 ways:

1- use the task control to set some JS functions to the tool bar buttons (by adding a "Load JS" action to the list data event), you can add a custom tool bar button in this way: task:Label, e.g:
_ADD_:New,_DELETE_:Remove:1,send:Display:1


the 3rd button above will run the "send" event in your form, you may add a redirect link there to your article, additionally, the selected record data will be sent there and you can use it (use a debugger to see it).


2- create your own toolbar, simply copy the toolbar source from the page source and use PHP to generate your own toolbar buttons with the JS functions you need.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 21 Sep, 2013
Hi Sloan,

I don't think that you would need any JS with the latest release, the button code above will simply force you to select some rows, or change "1" to "0" and it will not ask for any selections, the selected rows data will be passed to that form event, you can check that with a "debugger" action.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 25 Sep, 2013
Hi Sloan,

I forgot to mention that you should set the custom event name in your CC, its the "Custom Data tasks" setting.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.