Typolink content in menu?

眉间皱痕 提交于 2019-12-02 10:46:37

Just to add give the full working example. Using section.field = uid you can link to the content element itself.

lib.menu = HMENU
lib.menu {
    1 = TMENU
    1.NO {
        doNotLinkIt = 1
        wrapItemAndSub = <div>|</div>
        stdWrap.cObject = CONTENT
        stdWrap.cObject {
            table = tt_content
            select {
                pidInList.field = uid
            }
            renderObj = COA
            renderObj {

                10 = TEXT
                10.field = header
                10.typolink {
                    parameter.field = pid
                    section.field = uid
                }
            }
        }
    }
}
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!