Bug #78152
closed
content slide doesnt respect mountpoints
Added by Rainer Becker about 8 years ago.
Updated almost 5 years ago.
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
}
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
}
This may be related to #80970
Should be testet after the patch for #80970 is merged
- Related to Bug #80970: [HMENU][Introduction package] Parallel mount points don't work added
- Status changed from New to Closed
I tested this and it works as expected in v9 and v10!
Also available in: Atom
PDF