我尝试使用特殊的div- typo3创建一个div模板。编辑器应该能够将图像添加到page-element中。目标应该是以下代码:
<div id="special_div_tag_in_template">
    <img src="first_image_from_editor_in_page_element.png" />
    <img src="second_image_from_editor_in_page_element.png" />
    <img src="third_image_from_editor_in_page_element.png" />
</div> 是否可以创建自定义元素预设/表单域?
我希望有人能提示如何解决这个问题。谢谢,安德烈亚斯
发布于 2012-01-08 18:41:41
您可以使用页面属性的media字段:
lib.headerImage = COA
lib.headerImage {
    wrap = <div id="special_div_tag_in_template">|</div>
    10 = IMAGE
    10 {
        file {
            import = uploads/media/
            import {
                field = media
                listNum = 0
            }
            // set the dimensions if you want
            height = 200
            width = 100m
        }
    }
    // create a copy and select 2nd image
    20 < .10
    20.file.import.listNum = 1
    // create a copy and select 3rd image
    30 < .10
    30.file.import.listNum = 2
}查看TYPO3 Wiki以获取更多标题图像的示例。
另一种方法是在TemplaVoila中创建DS/TO,并将其作为灵活的内容元素(FCE)插入。
https://stackoverflow.com/questions/8773076
复制相似问题