【问题标题】:Conditional wrap in TypoScriptTypoScript 中的条件换行
【发布时间】:2011-11-18 11:44:37
【问题描述】:

我正在使用以下 TypoScript 呈现内容:

temp.addcol5 = CONTENT
temp.addcol5 {
  table = tt_content
  select {
    pidInList = this
    orderBy = sorting
    where = colPos = 5
    languageField = sys_language_uid
  }
}
temp.addcol5.wrap = <div class="content middle"> | </div>

我只想在数据库中有任何记录时包装内容。我怎样才能做到这一点?

【问题讨论】:

    标签: php typo3 typoscript


    【解决方案1】:

    你可以试试

    temp.addcol5.stdWrap {
      wrap= <div class="content middle"> | </div>
      required =1
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-28
      • 1970-01-01
      • 1970-01-01
      • 2020-12-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多