滑动和_image打字稿

Sliding og _image typoscript

这是滑动og图片的错别字。但它不适用于 TyYPO3 9.5.15

page.meta {

    og:image.stdWrap.typolink {
            parameter.stdWrap {
                cObject = IMG_RESOURCE
                cObject.file {
                  treatIdAsReference = 1
                    import {
                        data = levelfield:-1, og_image, slide
                        if.isFalse.field = og_image
                    }
                    height = 650
                    width = 1200c
                }
            }
            returnLast = url
            forceAbsoluteUrl = 1
        }
        og:image:url.stdWrap.typolink {
            parameter.stdWrap {
                cObject = IMG_RESOURCE
                cObject.file {
                  treatIdAsReference = 1
                    import {
                        data = levelfield:-1, og_image, slide
                        if.isFalse.field = og_image
                    }
                    height = 650
                    width = 1200c
                }
            }
            returnLast = url
            forceAbsoluteUrl = 1
        } 

}

可能是什么原因。请帮忙。

您需要将该字段声明为rootlinefield。

转到 ADMIN TOOLS -> Settings -> Configure Installation-Wide Options -> [FE] -> [FE][addRootLineFields] 并插入字段名。