Feature #19835
closedAdd controller switching for frontend editing
0%
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
Updated by Jeff Segars almost 16 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 almost 16 years ago
Added v2 patch with check for valid TSFE instance based on Steffen's review.
Updated by Jeff Segars almost 16 years ago
Committed v2 patch to trunk in r4933.
Updated by Jeff Segars over 15 years ago
Committed attached follow-up patch to trunk in r5146 to fix an caching issue.