Project

General

Profile

Actions

Feature #51017

closed

Add "Hide in Menu" Checkbox

Added by Mario Wilhelm over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-08-12
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

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!

Actions #1

Updated by Philipp Gampe over 10 years ago

  • Target version deleted (next-patchlevel)
  • Complexity set to easy

If someone finds time for this ...

Actions #2

Updated by Eric Chavaillaz over 10 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

Actions #3

Updated by Gerrit Code Review over 10 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

Actions #4

Updated by Eric Chavaillaz over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF