This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
1059 Posts
Bucklash
1 month ago
0
Topic

Hi folks

Knee deep in Free Object stuff.

I have created a plugin that creates or deletes to my free table.

It is a 'Seblod' free table in that Seblod knows about it.

My table is "#__cck_store_free_map".

The issue is with deletion of data

// variables
$table = '#__cck_store_free_map';
$content_type = 'map';
$data = array('of','stuff');
// create instance
$content = new JCckContentFree; 
$content->setTable( $table );

// ADD => WORKS
if ( $content->create( $content_type, $data )->isSuccessful() ) 
{  
    // works -> adds to free table and adds to cck_core table
}

// DELETE => WORKS 50%
$content->delete( $pk );  // deletes from free table and DOES NOT deletes from cck_core

Any tips or suggestions... or more info from me

Regards

Jon

Get a Book for SEBLOD