Project

General

Profile

Actions

Feature #49041

closed

HMENU + special=list + depht

Added by Jan Kornblum almost 11 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2013-06-11
Due date:
% Done:

0%

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

Description

Don't know if this is a bug and if anybody can reproduce this. This is the pagetree:

+ One (Rootpage + Typoscript)
+ Two
-
+ Three
---+ Four
----+ Five
-----+ Six
------+ Seven

A HEMNU with special=list and expAll=0 does not render all Levels (although TMENUs are configured from 1 to 7) when you click on the navigation items after each other. The deeper levels are not expanded in some cases:

Having special.value=(One) only shows "One" and "Two", deeper Levels are not rendered after you've clicked on "Two". Having special.value=(Two) shows all Levels after you've clicked on each navigation item. Having special.value=(Deeper than one) only shows the (Deeper than one) and no deeper levels are expanded at all after you've clicked on (Deeper than one).

The HMENU TS:
@
lib.navtest = HMENU
lib.navtest{
special = list # Please test special.value with a page from each level
special.value = 1
1 = TMENU
1{
noBlur = 1
expAll = 0
wrap = <ul class="item level-1"> | </ul>
NO = 1
NO {
doNotLinkIt = 0
wrapItemAndSub = <li> | </li>
ATagTitle.field = title
}
ACT < .NO
ACT {
wrapItemAndSub = <li class="selected> | </li>
}
}
2 < .1
2{
expAll = 0
NO{
wrapItemAndSub = <li class="uid-{field:uid}"> | </li>
wrapItemAndSub.insertData = 1
}
ACT{
wrapItemAndSub = <li class="selected uid-{field:uid}"> | </li>
wrapItemAndSub.insertData = 1
}
}
3 < .2
4 < .2
5 < .2
6 < .2
7 < .2
}
@

Actions #2

Updated by Jo Hasenau almost 11 years ago

I tested a similar setup myself and came to the conclusion:

Automatic expanding of submenus only works for those IDs in the list that belong to pages one level below the page containing the TypoScript and the template must have the root flag set. For any other ID in the list and any template without the root flag, the menu only expands up to the level that has "expAll = 1" set.
This is true for any number of levels set to expAll.

As soon as the listed ID is not a direct child of the page containing the TS template, the automatic expanding of expAll = 0 stops.
This is still the same when you don't set it to 0 but remove it via expAll >

Actions #3

Updated by Mathias Schreiber over 9 years ago

  • Tracker changed from Bug to Feature
  • Category changed from Pagetree to TypoScript
  • Target version set to 7.2 (Frontend)

I'll change this to Feature becaue the idea of list never was to show subpages.
It's a menu of a fixed list of items.

We do get the intention and will see if we can make it happen.

Actions #4

Updated by Benni Mack almost 9 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Actions #5

Updated by Susanne Moog over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #6

Updated by Benni Mack over 8 years ago

  • Target version changed from 7.5 to 8 LTS
Actions #7

Updated by Riccardo De Contardi about 7 years ago

  • Target version changed from 8 LTS to 9.0
Actions #8

Updated by Susanne Moog about 6 years ago

  • Target version deleted (9.0)
Actions #9

Updated by Benni Mack about 4 years ago

  • Status changed from New to Rejected

we won't do that.

Actions #10

Updated by Benni Mack about 4 years ago

coordinated with the author of the ticket.

Actions

Also available in: Atom PDF