Project

General

Profile

Actions

Bug #78152

closed

content slide doesnt respect mountpoints

Added by Rainer Becker over 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2016-10-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Given page structure:

A
  A1
  A2
B
  B1 (MountPoint A1)

Content selected with slide=-1 will iterate over the original rootline of mounted page. In the example content slide of B1 will search [A1,A] instead of [A1,B].

Workaround: Fill pidInList with rootline uids:

select.pidInList.cObject = HMENU
select.pidInList.cObject {
    special = rootline
    1 = TMENU
    1.NO = 1
    1.NO.allWrap.dataWrap = {field:uid},
    1.NO.doNotShowLink = 1
}

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #80970: [HMENU][Introduction package] Parallel mount points don't workClosed2017-04-23

Actions
Actions #1

Updated by Rainer Becker over 7 years ago

Correct snippet (colPos: 2):

getContentSlide = COA
getContentSlide {
        # create comma separated list of rootline pids (respecting mount points)
        6 = LOAD_REGISTER
        6.rootlinePids.cObject = HMENU
        6.rootlinePids.cObject {
            stdWrap.replacement.10 {
                search = #(.*),$#
                replace = $1
                useRegExp = 1
            }
            special = rootline
            special.reverseOrder = 1
            includeNotInMenu = 1
            1 = TMENU
            1.NO = 1
            1.NO.allWrap.dataWrap = {field:uid},
            1.NO.doNotShowLink = 1
        }

        # slide through pidlist until something is found and save found pid in register
        7 = LOAD_REGISTER
        7.slideResultPid.cObject < styles.content.get
        7.slideResultPid.cObject {
            select.where = colPos = 2
            select.orderBy.dataWrap = FIELD (pid, {register:rootlinePids}) ASC,
            select.max = 1
            select.pidInList.data = register:rootlinePids
            slide = -1
            renderObj = TEXT
            renderObj.field = pid
        }

        # set result pid
        20 < styles.content.get
        20 {
            select.where = colPos = 2
            select.pidInList.data = register:slideResultPid
        }

        30 = RESTORE_REGISTER
    }
Actions #2

Updated by Sascha Egerer almost 6 years ago

This may be related to #80970
Should be testet after the patch for #80970 is merged

Actions #3

Updated by Sascha Egerer almost 6 years ago

  • Related to Bug #80970: [HMENU][Introduction package] Parallel mount points don't work added
Actions #4

Updated by Benni Mack over 4 years ago

  • Status changed from New to Closed

I tested this and it works as expected in v9 and v10!

Actions

Also available in: Atom PDF