SID-00815: Show web changes of last 7 days
| Status: |
Answered |
TWiki version: |
4.0.5 |
Perl version: |
5.8.8 |
| Category: |
CategoryAutomation |
Server OS: |
Univention |
Last update: |
15 years ago |
Hello,
%SEARCH{".*" web="Standards" regex="on" nosearch="on" order="modified" reverse="on" date="P7d/$today"}%
works
%MAKETEXT{"See <a href='[_1]'>10</a> most recent changes"
args="%SCRIPTURLPATH{"search"}%/Standards/?search=%5C.*;scope=topic;order=modified;reverse=on;regex=on;nosearch=on;limit=10"}%
works, too.
But why
%MAKETEXT{"See <a href='[_1]'>7</a> days of changes"
args="/cgi-bin/search/Standards/?search=%5C.*;scope=topic;order=modified;reverse=on;regex=on;nosearch=on;date="P7d/$today""}
doesn't work? It shows a list of all topics! How to fix it?
I tried to write the date-parameter as the following:
* date="P7d/$today"
* date=P7d/$today
* date=%P7d/$today%
* date=%{P7d/$today}%
Greetings,
Christian
SID-00815: Show web changes of last 7 days
| Status: |
Answered |
TWiki version: |
4.0.5 |
Perl version: |
5.8.8 |
| Category: |
CategoryAutomation |
Server OS: |
Univention |
Last update: |
15 years ago |
Greetings, Christian
--
ChristianStuehrmann - 2010-04-19
Discussion and Answer
Any reason to point to the search script? You can simply create a WebChangesLast7Days containing your SEARCH and link to it.
The search script could be deprecated since you get everything and more with
VarSEARCH. The search script does not pass the date parameter to the SEARCH function.
--
PeterThoeny - 2010-04-20
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.