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 回答