[TYPO3-core] RFC: bug #3160

Wolfgang Klinger wolfgang at stufenlos.net
Wed Jul 12 20:26:24 CEST 2006


 *hiya!*

 type: bug
 BT reference: http://bugs.typo3.org/view.php?id=3160

 Problem: IFSUB is not true if the parent page is a shortcut page.
 Solution: add the two shortcut fields to the SQL query.


 bye
 Wolfgang

-------------- next part --------------
Index: typo3/sysext/cms/tslib/class.tslib_menu.php
===================================================================
--- typo3/sysext/cms/tslib/class.tslib_menu.php	(revision 1631)
+++ typo3/sysext/cms/tslib/class.tslib_menu.php	(working copy)
@@ -1340,7 +1340,7 @@
 			$uid = $mount_info['mount_pid'];
 		}
 
-		$recs = $this->sys_page->getMenu($uid,'uid,pid,doktype,mount_pid,mount_pid_ol,nav_hide');
+		$recs = $this->sys_page->getMenu($uid,'uid,pid,doktype,mount_pid,mount_pid_ol,nav_hide,shortcut,shortcut_mode');
 		foreach($recs as $theRec)	{
 			if (!t3lib_div::inList($this->doktypeExcludeList,$theRec['doktype']) && (!$theRec['nav_hide'] || $this->conf['includeNotInMenu']))	{	// If a menu item seems to be another type than 'Not in menu', then return true (there were items!)
 				return TRUE;


More information about the TYPO3-team-core mailing list