Feature #19835

Add controller switching for frontend editing

Added by Jeff Segars over 11 years ago. Updated almost 10 years ago.

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

0%

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)

0010155.diff View (3.87 KB) Administrator Admin, 2009-01-15 18:30

test_feedit.t3x (2.6 KB) Administrator Admin, 2009-01-15 18:32

0010155v2.diff View (3.99 KB) Administrator Admin, 2009-02-03 20:52

10155_followup.diff View (1.55 KB) Administrator Admin, 2009-03-08 16:26

History

#1 Updated by Jeff Segars over 11 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.

#2 Updated by Jeff Segars over 11 years ago

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

#3 Updated by Jeff Segars over 11 years ago

Committed v2 patch to trunk in r4933.

#4 Updated by Jeff Segars about 11 years ago

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

Also available in: Atom PDF