Hello Klas,
So i only use jgrid plugin
to display checkbox on the cck_id field and a submit button in my search view
of my list.
First i try this code in my
search override php file and i can have each cck_id who have been selected :
if (isset($_GET['cid'])){
foreach ($_GET['cid'] as $key=>$value)
{
//echo $value.','; It's work!
delete($value);// function unknow,
error php!!
}
}
But what's the name of the function
to delete a content??
/***********************************************************************************/
I try an other way. I've
look at the link on a delete icon in my list view and i try this:
if (isset($_GET['cid'])){
foreach ($_GET['cid'] as $key=>$value)
{
file_get_contents(JURI::Base()."index.php/les-structures?task=delete&cid=".$value);
}
}
But the content is not
delete... When i copy and paste this link in my browser the content is delete.
Maybe i need curl...
What is the best way to
delete a list of content??
Cordially
Julien