Feature #19835

Add controller switching for frontend editing

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

Should have
Target version:
Start date:
Due date:
% Done:


Estimated time:
PHP Version:
Sprint Focus:


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 (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

Updated by Jeff Segars over 12 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.


Updated by Jeff Segars over 12 years ago

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


Updated by Jeff Segars over 12 years ago

Committed v2 patch to trunk in r4933.


Updated by Jeff Segars about 12 years ago

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

Also available in: Atom PDF