如何显示所选日期(例如index.php?id=6&dateselected=13.04.2019
plugin.tx_news.settings.timeRestriction= {GP:dateselected}
plugin.tx_news.settings.timeRestrictionHigh= {GP:dateselected} +24 hour
不起作用,但是此代码起作用
plugin.tx_news.settings.timeRestriction= 13.04.2019
plugin.tx_news.settings.timeRestrictionHigh= 13.04.2019 +24 hour
答案 0 :(得分:1)
对于plugin.tx_news.settings.timeRestriction= {GP:dateselected}
或类似的东西,您需要stdWrap
功能。
那么您需要:plugin.tx_news.settings.timeRestriction.insertData = 1
或者您可以使用plugin.tx_news.settings.timeRestriction.data
您需要为以下字段激活stdWrap
:
plugin.tx_news {
settings {
useStdWrap = timeRestriction,timeRestrictionHigh
timeRestriction.data = GP:dateselected
timeRestrictionHigh = {GP:dateselected} + 24hour
timeRestrictionHigh.stdWrap.insertData = 1
}
}