0

現在のページからタイポリンクを作成したいのですが、別の名前と追加の GET パラメータを使用します。例えば

<a href="mytypo3site.com/this-is-the-current-side.html?someParam=1" title="My custom title">My custom name</a>

これは、MyCustomName のテキストのみを出力する私のコードです。

lib.tsfooter >
lib.tsfooter = COA
lib.tsfooter {
  10 = TEXT
  10.value (
   <!-- some HTML code-->
  )

  20 = TEXT
  20.value = MyCustomName
  20.stdWrap.typolink {
    data = TSFE:id
    addQueryString = 1
    addQueryString.method = get
    additionalParams = &myCustomParameter=1
  }
}

私が間違っていることは何ですか?

4

1 に答える 1

4
lib.tsfooter >
lib.tsfooter = COA
lib.tsfooter {
  10 = TEXT
  10.value (
   <!-- some HTML code-->
  )

  20 = TEXT
  20.value = MyCustomName
  # you do not need "stdWrap" as pgampe mentioned, but it will work even with stdWrap
  20.stdWrap.typolink {
    # parameter was missing
    parameter.data = TSFE:id
    addQueryString = 1
    addQueryString.method = get
    additionalParams = &myCustomParameter=1
  }
}
于 2012-12-03T10:07:57.153 に答える