Project

General

Profile

Actions

Feature #19524

closed

TCEmain changes for new improved record recycling concept

Added by Julian Kleinhans over 15 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
-
Start date:
2008-10-29
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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

recycler.JPG (87 KB) recycler.JPG Administrator Admin, 2008-10-30 13:47
9674_v3.patch (2.46 KB) 9674_v3.patch Administrator Admin, 2009-01-08 11:57
0009674_v4.patch (2.85 KB) 0009674_v4.patch Administrator Admin, 2009-01-08 13:38
Actions #1

Updated by Oliver Hader over 15 years ago

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
Actions #2

Updated by Julian Kleinhans over 15 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

Actions #3

Updated by Steffen Kamper over 15 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.

Actions #4

Updated by Oliver Hader over 15 years ago

v4 of the patch:
  • renamed canUndeleteRecord() to isRecordUndeletable()
  • fixed some styling issues
Actions #5

Updated by Julian Kleinhans over 15 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 ;-)

Actions #6

Updated by Oliver Hader over 15 years ago

Committed to SVN Trunk (rev. 4662)

Actions

Also available in: Atom PDF