【问题标题】:TYPO3 - Change order of elements within image elementTYPO3 - 图像元素中元素的更改顺序
【发布时间】:2013-03-06 10:49:51
【问题描述】:

我在 TYPO3 页面上有一个默认的文本/图像元素,里面的内容是这样的:

  1. 标题
  2. 图片
  3. 文字

我需要这个订单:

  1. 图片
  2. 标题
  3. 文字

我一直在尝试修改我的打字稿中的 tt_content std.header 对象,但它无法正常工作。

有人知道这个问题的答案吗?

【问题讨论】:

    标签: image element typo3


    【解决方案1】:

    看看:/typo3/sysext/css_styled_content/static/setup.txt

    搜索:CType: image(~650 行),然后将其整个复制到您的印刷模板中,清除tt_content.image.10(它的标题)并尝试将lib.stdheader 放在tt_content.image.20 中所需的位置...只是一个概念,我几年前做过类似的事情,不记得细节了......

    其他选项是使用 CSS/JS 来更改顺序,也许会更容易?

    【讨论】:

      【解决方案2】:
      tt_content.textpic {
      # remove default header
          10 >
          20 = < tt_content.image.20                
          20 {
              layout = TEXT
              layout.value = <div class="your-classes###CLASSES###">###IMAGES###</div>###TEXT###
      
      # insert the header as part of text
              text.15 = < lib.stdheader 
              text.20 = < tt_content.text.20
              text.wrap >
          }
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-09-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-10-04
        • 1970-01-01
        相关资源
        最近更新 更多