Bug #15931
closedMenu: IFSUB condition not working correctly (RC3)
0%
Description
I am testing RC3 in order to upgrade my 3.8.1 site.
I noticed a different behaviour in the new release in a menu
which includes an IFSUB condition to differentiate the layout of
the menu entries containing subpages.
Everything works for pages which include "normal" subpages: they
are regularly matched by IFSUB and displayed accordingly.
However, I have a page which has as subpages just some links to
internal pages ("shortcuts"). In this case, it looks like the
IFSUB condition is not matched by RC3, while it was on 3.8.1.
Therefore the entry is displayed as if it didn't have any subpages at all.
Thanks in advance
Claudio
(issue imported from #M3160)
Files
Updated by Claudio Strizzolo over 18 years ago
I just tried on the final 4.0 release: the same problem happens.
Updated by Ingmar Schlecht over 18 years ago
Hi Wolfgang,
I just assigned this bug to you, because I remember you changed some things in tslib_menu, so you might now what causes the problem.
If you don't want to take the bug, just unassign it again.
cheers
Ingmar
Updated by Jochen Weber over 18 years ago
Did somebody solved the problem, or should I figure it out ?
I have the same problem with 4.0 final !
Updated by Jochen Weber over 18 years ago
OK, die function "t3lib_pageSelect::getMenu()" became a new param "$checkShortcuts" witch is by default "1".
If the param is set, the function will check if shortcuts exist.
So the SQL-Query has to include the fields "shortcut" and "shotcut_mode".
resolution 1:
Add the fields "shortcut,shortcut_mode" in line 1343 of "class.tslib_menu.php" to the call of $this->sys_page->getMenu();
resolution 2:
Add The following Lines at the Beginning of "t3lib_pageSelect::getMenu()"
if( $fields!="*" && (t3lib_div::inList($fields,"shortcut") || t3lib_div::inList($fields,"shortcut")) ) {
$checkShortcuts = 0;
}
My Favorite ist the first resolution.
Updated by Wolfgang Klinger over 18 years ago
attached is a subversion diff against TYPO3 4.0_dev, please confirm that it works with it applied
Updated by Jochen Weber over 18 years ago
Hello Wolfgang !
good news: the patch works !
Updated by Jochen Weber over 18 years ago
Hello Wolfgang !
good news: the patch works !