0

Typo3に画像を追加しました。ページに追加の div が表示されました。

  <div class="csc-textpic csc-textpic-center csc-textpic-above">
    <div class="csc-textpic-imagewrap" data-csc-images="1" data-csc-cols="2">
        <div class="csc-textpic-center-outer">
            <div class="csc-textpic-center-inner">
            <figure class="csc-textpic-image csc-textpic-last">
                <img src="fileadmin/user_upload/aetuts.jpg" width="200" height="50" alt=""></figure>
            </div>
        </div>
    </div>
</div>

私はこのようなものが欲しい

 <img src="fileadmin/user_upload/aetuts.jpg" width="200" height="50" alt="">  

余分なラッパーなし。

コンテンツの余分なワッパーを削除するために、このようなことができます。

tt_content.stdWrap.innerWrap >

イメージのためにそれを行う方法は?

4

1 に答える 1

2

あなたの特定の質問について

次のコードは、画像の周りのすべてのラップを削除する必要があります。これにより、ポジショニング機能とフローティング機能も削除されることに注意してください。

# Remove some wraps
tt_content.image.20.imageStdWrap.dataWrap >
tt_content.image.20.imageStdWrapNoWidth.dataWrap >
tt_content.image.20.imageColumnStdWrap.dataWrap >

# Redefine the layout switch with only one default case
tt_content.image.20.layout >
tt_content.image.20.layout = CASE
tt_content.image.20.layout.key.field = imageorient
tt_content.image.20.layout.default = TEXT
tt_content.image.20.layout.default.value = ###IMAGES### ###TEXT###

# Remove the wrap around the image subtext
tt_content.textpic.20.text.wrap = |

# Define a new rendering method without wraps
tt_content.image.20.rendering.noWraps {
  imageRowStdWrap.dataWrap = |
  noRowsStdWrap.wrap =
  oneImageStdWrap.dataWrap = |
  imgTagStdWrap.wrap = |
  editIconsStdWrap.wrap = |
  caption.wrap = |
}
# Set this as active rendering method
tt_content.image.20.renderMethod = noWraps

.

コンテンツ要素に対してそれを行う方法

  1. Type3でテンプレートビューを使う
  2. テンプレートのあるページに移動します
  3. テンプレートを編集する
  4. 上部にあるTyposcript-Object-Browserを選択します ( Info/Editの代わりに)
  5. 検索フォームを使用して、「csc-textpic」などのラップを見つけます。
  6. 削除するラップまたはテンプレートを特定します
  7. >あなたのタイポスクリプトコードでそれらを上書きまたは削除します
于 2015-07-23T10:36:16.937 に答える