Project

General

Profile

Actions

Bug #15931

closed

Menu: IFSUB condition not working correctly (RC3)

Added by Claudio Strizzolo about 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2006-04-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

tslib_menu.diff (232 Bytes) tslib_menu.diff Administrator Admin, 2006-07-12 14:09

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #16148: IFSUB and ACTIFSUB of Menus fails with pagetype shortcut as subpageClosed2006-05-15

Actions
Actions #1

Updated by Claudio Strizzolo about 18 years ago

I just tried on the final 4.0 release: the same problem happens.

Actions #2

Updated by Ingmar Schlecht about 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

Actions #3

Updated by Jochen Weber almost 18 years ago

Did somebody solved the problem, or should I figure it out ?

I have the same problem with 4.0 final !

Actions #4

Updated by Jochen Weber almost 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.

Actions #5

Updated by Wolfgang Klinger almost 18 years ago

attached is a subversion diff against TYPO3 4.0_dev, please confirm that it works with it applied

Actions #6

Updated by Jochen Weber almost 18 years ago

Hello Wolfgang !

good news: the patch works !

Actions #7

Updated by Jochen Weber almost 18 years ago

Hello Wolfgang !

good news: the patch works !

Actions

Also available in: Atom PDF