Project

General

Profile

Bug #103004

Updated by Daniel Siepmann 3 months ago

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. 

 <pre> 
 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 
                 } 
             } 
             // For testing only 
             // dataWrap = test="{field:uid}" 
             stdWrap { 
                 replacement { 
                     1 { 
                         search = .html 
                         replace =  
                     } 
                 } 
             } 
         } 
     } 
 } 
 </pre> 

 The commented out part seems to have access to the actual linked page, so there seems to be something broken while calling the cObject somehow. But I wasn't able to find any clues …

Back