How to use the Delete toolbar?
I use the _DELETE_ function in my CC listing. This works fine (the record is deleted).
Now I try to use the _TOOLBAR_DELETE_ in combination with the _SELECTOR_ function. I assumed that this button would delete the selected record, but nothing happens. So, what am I doing wrong?
Now I try to use the _TOOLBAR_DELETE_ in combination with the _SELECTOR_ function. I assumed that this button would delete the selected record, but nothing happens. So, what am I doing wrong?
It should work too, do you have the latest update of CC installed ?
Hi Geert,
There is a code version which you can use instead, its noted under the "Help" tab, please post a reply if you can't get it to work, you need to pass the action's name and that would be "delete".
Regards,
Max
There is a code version which you can use instead, its noted under the "Help" tab, please post a reply if you can't get it to work, you need to pass the action's name and that would be "delete".
Regards,
Max
Hi Max
I think this is the code you mean:
But I don't have any clue on what to fill in where?
I think this is the code you mean:
$this->view->Toolbar->renderButton("button_id", "link_href", "TEXT", "image_path", "submit_selectors");
But I don't have any clue on what to fill in where?
button_id: can be any thing, say "delete"
link_href: the link to your listing and add "&action=delete" to the end.
image_path: the link to the button's image if you need one.
link_href: the link to your listing and add "&action=delete" to the end.
image_path: the link to the button's image if you need one.
Hi Max
I don't need an image_path. The link to my listing is "index.php?option=com_chronoconnectivity5&view=connection&Itemid=1322"
So I do the following:
I go to "Front List > List Display > Table"
In Footer code I put the following:
In the frontend I can't see anything. Not even a button.
If I put _TOOLBAR_DELETE_in the footer, I can see a delete button, but after selecting some records nothing happens when I click on it.
I don't need an image_path. The link to my listing is "index.php?option=com_chronoconnectivity5&view=connection&Itemid=1322"
So I do the following:
I go to "Front List > List Display > Table"
In Footer code I put the following:
<?php $this->view->Toolbar->renderButton("delete", "index.php?option=com_chronoconnectivity5&view=connection&Itemid=1322&action=delete", "Delete selection", "", "submit_selectors"); ?>
In the frontend I can't see anything. Not even a button.
If I put _TOOLBAR_DELETE_in the footer, I can see a delete button, but after selecting some records nothing happens when I click on it.
I have exactly the same problem... Can't figure out how to solve it. I tried many things without any success.
Hi,
Just tested this, do you have a search button in your header ? if you do then the button's name should not = "submit", when its, the toolbar buttons will not work.
Regards,
Max
Just tested this, do you have a search button in your header ? if you do then the button's name should not = "submit", when its, the toolbar buttons will not work.
Regards,
Max
This topic is locked and no more replies can be posted.