46494[FEATURE] Allow to select redirect code for doktype shortcut
Commit message
Review
-
Code review CR 0
-
Verified V 0
Issues 2
Files 5
- typo3/sysext/core/Configuration/TCA/pages.php2+18 −1
- typo3/sysext/core/ext_tables.sql2+1 −0
- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php1+1 −1
- typo3/sysext/frontend/Classes/Page/PageRepository.php1+6 −0
- typo3/sysext/frontend/Resources/Private/Language/locallang_tca.xlf1+12 −0
Review log 9
-
Gerald Aistleitner uploaded patch set 1 02/05/16, 09:52
-
Gerald Aistleitner uploaded patch set 2 02/05/16, 10:49
-
Andreas Wolf commented on patch set 2 02/05/16, 13:51
In general, I like the idea. I would however change the storage mechanism to just use the redirect code.pages.php:541I would rather use the codes (301, 307) here as the value instead of the full header value.ext_tables.sql:134I think this should be a tinyint instead and store the redirect code. -
Xavier Perseguers commented on patch set 2 CR -1 02/12/16, 11:19
Please soft wrap your commentpages.php:541ReplyI double that!ext_tables.sql:134ReplydefinitelyTypoScriptFrontendController.php:2971It should be feasible to transform the tinyint redirect code to a constant name using the `constant($name)` construct.PageRepository.php:174no need for duplicated that from HttpUtilitylocallang_tca.xlf:315Please remove the `xml:space="preserve"` attributes. -
Christian Kuhn commented on patch set 2 CR -1 02/19/16, 17:41
i'm not a big fan of this. the difference between 301 / 307 and others is not easy to understand for editors and the default 307 is the most sane decision from framework point of view in this case. an editor shouldn't be nagged with this details, and usually admins don't think about this, too. i propose to encapsulate this field in an extension that is not part of core to provide this functionality in case it is needed in the first place and if admins / editors do understand the background of this. -
Andreas Wolf commented on patch set 2 03/06/16, 00:33
We decided that this feature should rather go to an extension, although the general idea is nice. Therefore, we abandon this one to clean up the review system. -
Andreas Wolf abandoned the change 03/06/16, 00:33
-
Daniel Goerz commented on patch set 1 07/14/16, 09:46
Maybe I miss something but how can this be solved in an extension if the redirect is hardcoded to be 307 in the TypoScriptFrontendController? I think this would be a useful feature that is requested from time to time. -
Daniel Goerz commented on patch set 2 07/14/16, 10:05
Well you could obviously XClassing the TypoScriptFrontendController and overwrite the method but I'd rather not do that.