#105860Data processor menu browser items are not marked by their type.
Description
Using a menu data processor with “special=browser” the resulting items are not marked by which type they have:
Configuration:
page {
10 {
dataProcessing {
50 = menu
50 {
special = browse
as = browseNavigation
special {
items = index|up|next|prev
items.prevnextToSection = 1
index.target = _blank
index.fields.title = INDEX
}
}
}
}
}
Output:
array(3 items) 0 => array(8 items) data => array(77 items) title => 'Start page' (10 chars) link => '/' (1 chars) target => '' (0 chars) active => 1 (integer) current => 0 (integer) spacer => 0 (integer) hasSubpages => 1 (integer) 1 => array(8 items) data => array(77 items) title => 'Page 3' (6 chars) link => '/page-3' (7 chars) target => '' (0 chars) active => 0 (integer) current => 0 (integer) spacer => 0 (integer) hasSubpages => 0 (integer) 2 => array(8 items) data => array(77 items) title => 'Page 1' (6 chars) link => '/page-1' (7 chars) target => '' (0 chars) active => 0 (integer) current => 0 (integer) spacer => 0 (integer) hasSubpages => 1 (integer)
There is no way to determine which item is of which kind. I would have expected to have this reflected ideally in the array keys or, if that is not possible, as a property of the resulting item.
Reviews 3
History 36
-
Chris Müller changed description 12/23/24, 15:23
-
Gerrit Code Review pushed patch set 1 for main to change 88331 status
NewUnder Review 02/24/25, 20:37 -
Gerrit Code Review pushed patch set 1 for 13.4 to change 88393 02/28/25, 08:11
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 88394 02/28/25, 08:11
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % 02/28/25, 08:15 -
Benni Mack changed status
ResolvedClosed 12/02/25, 14:27
Applied in changeset commit:643c3e3572ae8cd11edbe75b738d038a6c66d297.