包裹GMENU项目的图像

时间:2016-10-31 10:41:50

标签: typo3 typoscript

是否可以将图像包裹在GMENU项目的链接中? 当前的TypoScript:

lib.logoFooter = COA_INT
lib.logoFooter {
    50 = HMENU
    50{
        special = directory
        special.value = #folderPID#
        1 = GMENU
        1 = GMENU
        1 {
            wrap = <ul class="GMENU-wrap">|</ul>
            NO = 1
            NO{
                wrap = <li class="GMENU-item-wrap">|</li>
                altImgResource{
                    import = uploads/media/
                    import {
                        field = media
                        listNum = 0
                    }
                    maxW = 150
                    maxH = 150

                }
            }
        }
    }
}

当前结果:

<ul class="GMENU-wrap">
    <li class="GMENU-item-wrap">
        <a someParams="someValues">
            ###WantToInsertSomeHTMLHere###
            <img someImageParams="someImageValues"/>
        </a>
    </li>
</ul>

现在我可以包装链接,是否也可以将img包装在链接中( ### WantToInsertSomeHTMLHere ### )?

1 个答案:

答案 0 :(得分:1)

你想在你的a-tag中插入一些东西吗?只需添加ATagBeforeWraplinkWrap

NO{
  wrap = <li class="GMENU-item-wrap">|</li>
  ATagBeforeWrap = 1
  linkWrap = WantToInsertSomeHTMLHere|
  altImgResource{
    import = uploads/media/
    import {
      field = media
      listNum = 0
    }
    maxW = 150
    maxH = 150
  }
}