首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Sliding og _image typoscript

Sliding og _image typoscript
EN

Stack Overflow用户
提问于 2020-04-15 21:18:03
回答 1查看 108关注 0票数 0

这是滑动对数图像的打字稿。但它在TyYPO3 9.5.15上不起作用

代码语言:javascript
复制
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
        } 

}

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-04-22 15:00:18

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

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61229734

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档