Project

General

Profile

Actions

Feature #19835

closed

Add controller switching for frontend editing

Added by Jeff Segars over 15 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-01-15
Due date:
% Done:

0%

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

Description

The recent frontend editing overhaul for version 4.3 moves the logic of saving records into a controller in t3lib_frontendedit. This controller works for classic page templating, but TemplaVoila (and other future templating methods) may need their own options for handling moves, deletes, etc.

Since multiple controllers may be used throughout the site (ie. one branch of the pagetree uses TV, one does not), we need a way to switch these controllers via Page TSConfig and add an option TSFE.frontendEditingController.

Also, in order to access Page TSConfig, we had to move frontend editing a little bit later within index_ts.php. I haven't seen any side effects from this move.

(issue imported from #M10155)


Files

0010155.diff (3.87 KB) 0010155.diff Administrator Admin, 2009-01-15 18:30
test_feedit.t3x (2.6 KB) test_feedit.t3x Administrator Admin, 2009-01-15 18:32
0010155v2.diff (3.99 KB) 0010155v2.diff Administrator Admin, 2009-02-03 20:52
10155_followup.diff (1.55 KB) 10155_followup.diff Administrator Admin, 2009-03-08 16:26
Actions #1

Updated by Jeff Segars over 15 years ago

Added a test extension with an alternate controller that dies as soon as a record is saved in frontend editing.

To activate the default controller, set TSFE.frontendEditingController = default in Page TSConfig or don't set anything at all . To activate the the test controller, set TSFE.frontendEditingController = test.

Actions #2

Updated by Jeff Segars about 15 years ago

Added v2 patch with check for valid TSFE instance based on Steffen's review.

Actions #3

Updated by Jeff Segars about 15 years ago

Committed v2 patch to trunk in r4933.

Actions #4

Updated by Jeff Segars about 15 years ago

Committed attached follow-up patch to trunk in r5146 to fix an caching issue.

Actions

Also available in: Atom PDF