FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
190 stars 229 forks source link

v:page.resources.fal slide feature broken #1739

Closed mkrappitz closed 1 year ago

mkrappitz commented 2 years ago

Using the v:page.resources.fal viewhelpers "slide" function as follows outputs the image only on the page which has the file in it not on the subpages of it, where it should get inherited to. The field tx_myextension_logo is added to [FE][addRootLineFields] fields.

<f:for each="{v:page.resources.fal(field: 'tx_myextension_logo', record : data, slide : -1, slideCollect : TRUE)}" as="image">
    <f:image src="{image.id}" alt="{image.alternative}" title="{image.title}" crop="{image.crop}" />
</f:for>

As a workaround I now use this rather chunky Typoscript, which works on all pages in the very same TYPO3 installation:

lib.logo = FILES
lib.logo {
    references {
        data = levelfield: -1 , tx_myextension_logo, slide
    }
    renderObj = IMAGE
    renderObj {
        file.import.dataWrap = {file:current:storage}:{file:current:identifier}
        file.crop.data = file:current:crop
        altText.data = file:current:alternative
        titleText.data = file:current:title
    }
}