Project

General

Profile

Actions

Bug #103004

closed

TMENUITEM cObject no longer has access to linked page

Added by Daniel Siepmann 3 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2024-01-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The docs still state:

The current record is the page record of the menu item. If you would like to get data from the current menu item's page record, use stdWrap.data = field : [field name].

at https://docs.typo3.org/m/typo3/reference-typoscript/12.4/en-us/MenuObjects/Tmenuitem/Index.html which worked in v10.
But this doesn't seem to work in v12 anymore.

Given the following TypoScript the data is resolved to the actual content element, not the menu page entry.

tt_content.menu_subpages {
    20 {
        1.NO.ATagTitle >
        1.NO.ATagParams {
            cObject = COA
            cObject {
                10 = TEXT
                10 {
                    typolink {
                        parameter.field = uid
                        returnLast = url
                    }
                    noTrimWrap = |onclick="econdaTrackMarker('footer|');" |
                }
                20 = TEXT
                20 {
                    typolink {
                        parameter.field = uid
                        returnLast = url
                    }
                    wrap = data-tracking-marker="footer|" 
                }
                30 = TEXT
                30 {
                    wrap = data-qa="|" 
                    field = tx_e2core_qa_identifier
                    required = 1
                }
            }
            stdWrap {
                replacement {
                    1 {
                        search = .html
                        replace = 
                    }
                }
            }
        }
    }
}

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #101883: TypoScript Issue between v11 and v12Resolved2023-09-08

Actions
Actions #1

Updated by Daniel Siepmann 3 months ago

  • Description updated (diff)
Actions #2

Updated by Gerrit Code Review 3 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82754

Actions #3

Updated by Gerrit Code Review 3 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82754

Actions #4

Updated by Daniel Siepmann 2 months ago

  • Is duplicate of Bug #101883: TypoScript Issue between v11 and v12 added
Actions #5

Updated by Daniel Siepmann 2 months ago

  • Status changed from Under Review to Closed
Actions

Also available in: Atom PDF