Issue Bug Closed

#105860Data processor menu browser items are not marked by their type.

Lina Wolf 12/22/24, 11:10 updated 12/02/25, 14:27

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

  1. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-02-28T08:15:11+00:00" > 02/28/25, 08:15 </span>

    Applied in changeset commit:643c3e3572ae8cd11edbe75b738d038a6c66d297.