Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows XP Professional, Service Pack 2
Web server: Apache 1.3.34 (Win32)
Perl version: 5.8.7-5 (Cygwin)
Client OS: Windows XP Professional, Service Pack 2
Web Browser: Internet Explorer 6.0
Categories: Search

-- JasonVensel - 19 Apr 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Hmm, your query looks OK, and it works here:

New Who Last update
SID-01468 AbdeAliKagalwalla 2012-05-27 - 00:14 - 1
ConnectByRestPlugin PeterThoeny 2012-05-14 - 18:41 - 1
SID-01462 TWikiGuest 2012-05-12 - 16:00 - 1
SID-01460 PaoloGallo 2012-05-09 - 15:36 - 1
SID-01458 AjayYadav 2012-05-03 - 07:18 - 1
SID-01457 LucianGonda 2012-05-02 - 10:14 - 1
SID-01456 KehindeAdeoya 2012-04-26 - 19:06 - 1
SID-01451 TWikiGuest 2012-04-18 - 18:13 - 1
SID-01435 SatishPasumarthi 2012-03-27 - 11:21 - 1
SID-01433 BenjaminStewart 2012-03-25 - 17:41 - 1
SendMailPlugin PeterThoeny 2012-03-14 - 03:55 - 1
SID-01423 JigneshKoshti 2012-03-13 - 14:41 - 1
SID-01422 JeffMaki 2012-03-13 - 14:22 - 1
SID-01414 TWikiGuest 2012-02-27 - 12:14 - 1
SID-01395 RobRobason 2012-02-07 - 00:20 - 1

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

 
Topic revision: r6 - 2006-04-21 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.