[BUGFIX] Category tree when editing a news record no longer filters b…#60
[BUGFIX] Category tree when editing a news record no longer filters b…#60
Conversation
|
Could you describe your approach in words? How are you approaching this differently than me in #59 ? Issues:
This why I introduced and used tx_ttnews_div::getStoragePid() (See: https://github.com/rupertgermann/tt_news/pull/59/files#diff-5d6751ebc5d47e17180534532a594ad6R225)
|
|
regarding your 1.: getTCEFORM_TSconfig() fills _STORAGE_PID if so configured in TS, who cares for getPageForRootline here? => I check in TYPO3 7.6 core! |
|
ad 1. & ad. 3.: Did you actually test this to base your claims on? Not working for me. both of these cannot work: Do you define this any different? I guess you cannot, because as far as I can see, you cannot possibly set your Let's have a look at the core: https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_7-6/typo3/sysext/backend/Classes/Utility/BackendUtility.php#L3833 Assume we define We will get a In line 3844 (https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_7-6/typo3/sysext/backend/Classes/Utility/BackendUtility.php#L3844) we will hop out, because Since the code indicates the 'types.' configuration could be used, I tried This is not what you are reading in the extension. What you expect is So - do you see any way how to set that in pageTSConfig? The usual way used to be to edit the page record and select a page at "General storage page": At line 3859 (https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_7-6/typo3/sysext/backend/Classes/Utility/BackendUtility.php#L3859),` self::BEgetRootLine() Then, in line 401, each page record for rootline is loaded (https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_7-6/typo3/sysext/backend/Classes/Utility/BackendUtility.php#L401), but as you see, the DB field To compare (and for you to see why this is no longer working): Now at the point of line 3860 (https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_7-6/typo3/sysext/backend/Classes/Utility/BackendUtility.php#L3860), qed - do you disagree? |
|
PS: Same issue here: https://github.com/rupertgermann/tt_news/blob/master/pi/class.tx_ttnews.php#L3592
As you see - no Even more: in
Everywhere, when it comes to extConf 'useStoragePid' in tt_news. :) |
|
Updated: **See #64 **
For you to consider: You can define However, in that case, I'd rather add not Then, you can change https://github.com/LeoniePhiline/tt_news/blob/bugfix/58_storagePid_for_categoryTree/lib/class.tx_ttnews_div.php#L239 to use You can add an update script for easier transition: If you do want to use some kind of TSconfig solution, then you have a problem: It's for the Backend. |
Implemented in #65 Tested and works. |
…y storage Pid #58