0

How we can show the news from selected date like index.php?id=6&dateselected=13.04.2019

plugin.tx_news.settings.timeRestriction= {GP:dateselected} 
plugin.tx_news.settings.timeRestrictionHigh= {GP:dateselected} +24 hour

not working but this code working

plugin.tx_news.settings.timeRestriction= 13.04.2019  
plugin.tx_news.settings.timeRestrictionHigh= 13.04.2019 +24 hour
Markus Deibel
  • 1,261
  • 20
  • 26
Mujeebrpp
  • 5
  • 2

1 Answers1

2

For plugin.tx_news.settings.timeRestriction= {GP:dateselected}, or something similar, you need stdWrap functionality.

Then you need: plugin.tx_news.settings.timeRestriction.insertData = 1

Or you could use plugin.tx_news.settings.timeRestriction.data

You need to activate the stdWrap for these fields:

plugin.tx_news {
    settings {
        useStdWrap = timeRestriction,timeRestrictionHigh

        timeRestriction.data = GP:dateselected

        timeRestrictionHigh = {GP:dateselected} + 24hour
        timeRestrictionHigh.stdWrap.insertData = 1
    }
}
Bernd Wilke πφ
  • 10,390
  • 1
  • 19
  • 38