Feature #51017
closedAdd "Hide in Menu" Checkbox
100%
Description
Is it possible to add a "Hide in menu"-checkbox in the functions?
I use this "functions" to add a lot pages in the beginning of a project.
But for the hidden pages I have to go to every page. This would save a lot of additional clicks.
Thank you!
Updated by Philipp Gampe over 11 years ago
- Target version deleted (
next-patchlevel) - Complexity set to easy
If someone finds time for this ...
Updated by Eric Chavaillaz about 11 years ago
Philipp or Mario, could you create the patch for me? I am not yet familiar with Gerrit.
You just have to make this for TYPO3 6.2 LTS :
In typo3/sysext/wizard_crpages/Classes/Controller/CreatePagesWizardModuleFunctionController.php :
Replace the line 116 with :
$data['pages'][$identifier]['hidden'] = GeneralUtility::_GP('hidePages') ? 1 : 0; $data['pages'][$identifier]['nav_hide'] = GeneralUtility::_GP('hidePagesInMenus') ? 1 : 0;
Replace the line 161 with :
<input type="checkbox" name="hidePages" id="hidePages" value="1" /> <label for="hidePages">' . $GLOBALS['LANG']->getLL('wiz_newPages_hidePages') . '</label><br /> <input type="checkbox" name="hidePagesInMenus" id="hidePagesInMenus" value="1" /> <label for="hidePagesInMenus">' . $GLOBALS['LANG']->getLL('wiz_newPages_hidePagesInMenus') . '</label><br /><br />
In typo3/sysext/wizard_crpages/locallang.xlf:
Replace the lines 30, 31 and 32 with :
<trans-unit id="wiz_newPages_hidePages" xml:space="preserve"> <source>Hide new pages</source> </trans-unit> <trans-unit id="wiz_newPages_hidePagesInMenus" xml:space="preserve"> <source>Hide new pages in menus</source> </trans-unit>
That's all...
Thanks
Updated by Gerrit Code Review about 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23531
Updated by Eric Chavaillaz about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8f0b89b8cf2c645ad819bb62af7fc8dd38d7abec.