Feature #19524
closed
TCEmain changes for new improved record recycling concept
Added by Julian Kleinhans about 16 years ago.
Updated over 14 years ago.
Description
I need some changes for the new improved record recycling concept [1] in the tcemain
First, to work with deleted records i need the posibility to disable the deleteClause WHERE statement which is used in some relevant methods i need.
In my patch i have add a protected class var $disableDeleteClause and a public setter method disableDeleteClause()
The if statement in the deleteClause method is extended to "if ($TCA[$table]['ctrl']['delete'] && !$this->disableDeleteClause)"
The next thing is a method that checks if i can undelete a record, because, at this moment i can undelete every record with process_cmdmap and undelete, no matter if the parent site is avaiable or not!
[1] http://forge.typo3.org/projects/show/extension-recycler
(issue imported from #M9674)
Files
HCI Team Tasks: Discuss and find a solution how the Recycler module should be integrated
- Web > Recycler
- Tools > Recycler
Currently it's
- Web > Info > Recycler for normal editors showing only records on a page-branch
- Tools > Recycler showing all records
I think Web > Recycler is the best place
but i am not sure if the user misunderstand the page tree. The page tree show all avaiable pages and not deleted records, the user must choose a page before he can see deleted records for this page in the right frame!
And to show all records, we can extend the depth select with "infinity" (only for admins) ? see screenshot
imho Recycler should be admin-only modules.
Web is a good place because of pagetree, but right place would be tools. What a pity that tools-modules doesn't have page tree.
v4 of the patch:
- renamed canUndeleteRecord() to isRecordUndeletable()
- fixed some styling issues
@steffen,
the recyler modul in Admin Tools is only for admins, yes, but in the Web > Info Modul is a second recycler modul for normal backend users ;-)
Committed to SVN Trunk (rev. 4662)
Also available in: Atom
PDF