[TYPO3] Deleting records from the back end
StephenBungert
stephenbungert at yahoo.de
Fri Jun 13 12:36:56 CEST 2008
Hi.
Is it possible through the backend to really delete db records?
I have altered the nwlsecurdl extension so that a direct url is not given
out, and have expanded the database with a few more bits of info about the
user and the download. I have also created a backend module for it. At the
moment I can delete things, and this marks the delete field to 1 instead of
0. I then only show in the be records with delete set to 0 (i.e. not
deleted).
I thought that maybe I could add a function in the be module to only show
deleted records and give an option to 'really' delete the record from the
database.
Stephen
lesm-3 wrote:
>
> Hi Stephen,
>
> I never delete a record. If I don't need an old one I put it in a
> Recycler for future use. The reason is that a record is never deleted
> but flagged as deleted. In other words it will remain in the DB holding
> a "red flag" forever and ever.
>
> LESM
>
> Stephen Bungert wrote:
>> In my backend module I have an image of a trashcan for deleting thar
>> record
>> from the database.
>>
>> Why does this not work?
>>
>> // Check if something has been deleted
>> if ($this->delCheck) {
>> $changes = array(
>> 'deleted' => 0,
>> );
>> $GLOBALS['TYPO3_DB']->UPDATEquery('tx_metri_secure_log', 'uid=' .
>> $this->delCheck, $changes);
>> }
>>
>> It doesn't change the deleted field to 1.
>>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
-----
--
Stephen Bungert
--
View this message in context: http://www.nabble.com/Deleting-records-from-the-back-end-tp17696125p17820650.html
Sent from the TYPO3 English mailing list archive at Nabble.com.
More information about the TYPO3-english
mailing list