additional_modification.txt

GRiDDS GmbH, 2016-10-14 13:34

Download (1.24 KB)

 
1
Fix problem with menus and "Hide default translation of page"
2
=============================================================
3

    
4
The problem: When "Hide default translation of page" was set for a page, the page disappeared in the menu for ALL languages. Therefore it was not possible to create pages only in Dutch (whith English being the standard language).
5

    
6
In ``TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject::filterMenuPages(&$data, $banUidArray, $spacer)`` (in the file typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php) replace::
7

    
8
  // Checks if the default language version can be shown:
9
  // Block page is set, if l18n_cfg allows plus: 1) Either default language or 2) another language but NO overlay record set for page!
10
  $blockPage = $data['l18n_cfg'] & 1 && (!$GLOBALS['TSFE']->sys_language_uid || $GLOBALS['TSFE']->sys_language_uid && !$data['_PAGES_OVERLAY']);
11

    
12
by this::
13

    
14
  // Checks if the default language version can be shown:
15
  // Block page is set, if l18n_cfg allows plus: 1) Either default language or 2) another language but NO overlay record set for page!
16
  $blockPage = $data['l18n_cfg'] & 1 && (!$GLOBALS['TSFE']->sys_language_uid /* || $GLOBALS['TSFE']->sys_language_uid && !$data['_PAGES_OVERLAY'] */);