Feature #19524
closedTCEmain changes for new improved record recycling concept
0%
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
Updated by Oliver Hader about 16 years ago
- Web > Recycler
- Tools > Recycler
- Web > Info > Recycler for normal editors showing only records on a page-branch
- Tools > Recycler showing all records
Updated by Julian Kleinhans about 16 years ago
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
Updated by Steffen Kamper almost 16 years ago
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.
Updated by Oliver Hader almost 16 years ago
- renamed canUndeleteRecord() to isRecordUndeletable()
- fixed some styling issues
Updated by Julian Kleinhans almost 16 years ago
@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 ;-)