#46383levelmedia ignores sorting of media records
Description
Precondition: a page with multiple FAL media records (images).
The sorting of media records is ignored. If the sorting is changed afterwards, it does not affect the order of the “FILES”:
page.10 = COA
page.10{
stdWrap.wrap = <ul>|</ul>
stdWrap.required = 1
10 = FILES
10 {
references{
data = levelmedia:-1, slide
treatIdAsReference = 1
}
renderObj = IMAGE
renderObj {
stdWrap.wrap = <li>|</li>
stdWrap.required = 1
file.import.data = file:current:originalUid // file:current:uid
}
}
}
This does work (but without “slide”):
page.10 = COA
page.10{
stdWrap.wrap = <ul>|</ul>
stdWrap.required = 1
10 = FILES
10 {
references{
table = pages
uid.data = page:uid
fieldName = media
}
renderObj = IMAGE
renderObj {
stdWrap.wrap = <li>|</li>
stdWrap.required = 1
file.import.data = file:current:originalUid // file:current:uid
}
}
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 5
- Bug #43691Media Image Import is broken
- Epic #54260WP: FAL Missing Issues / Features / API
- Bug #54884RootlineUtility does not consider foreign_sorting for relation fields
- Bug #54884RootlineUtility does not consider foreign_sorting for relation fields
- Bug #56150Exception with "Hidden" sys_file_references when using levelmedia - RootlineUtility::enrichWithRelationFields ignores disable field