Question
ISSUE 1
I'm unable to get the "What's New" functionality described in
HowToListOnlyNewTopics to work.
I inserted this:
%SEARCH{ "META:TOPICINFO.*version=\"1.1\"" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" header="| *New* | *Who* | *Last update* |" format="| [[$topic]] | $wikiusername | $date |" limit="15" }%
But when I save the topic and view it, nothing appears where the search string was inserted. I have verified that
version="1.1" topics do exist in the web in which I'm testing it.
No error messages appear in my Apache error log.
If I modify the search by removing ONLY the
.*version=\"1.1\" portion, so that it looks like this:
%SEARCH{ "META:TOPICINFO" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" header="| *New* | *Who* | *Last update* |" format="| [[$topic]] | $wikiusername | $date |" limit="15" }%
Then, the search returns a list of 15 topics (obviously the results aren't based on version numbers; it's just the 15 most recently modified topics that contain the
META:TOPICINFO search parameter).
Environment
--
JasonVensel - 19 Apr 2006
Answer
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.
Hmm, your query looks OK, and it works here:
Your Windows/Cygwin environment possibly has an issue with doublequote search? Try
"META:TOPICINFO.*version=.1\.1[^0-9]"
--
PeterThoeny - 20 Apr 2006
Peter, thanks for the response. Your suggested search worked.
%SEARCH{ "META:TOPICINFO.*version=.1\.1[^0-9]" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" header="| *Topic* | *Created By* | *Created On* |" format="| [[$topic]] | $wikiusername | $date |" limit="15" }%
--
JasonVensel - 21 Apr 2006