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 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:

New Who Last update
SID-02515 BenScott 2024-02-09 - 02:27 - 1
SID-02508 AlanMagnuson 2023-06-13 - 17:26 - 1
SID-02505 DanMellem 2023-03-27 - 21:00 - 1
AnchorLinkPlugin PeterThoeny 2020-10-24 - 22:10 - 1
SID-02442 SteffenLoeffler 2020-04-04 - 14:56 - 1
SID-02441 DavidTremain 2020-04-03 - 15:24 - 1
SID-02436 TWikiGuest 2020-03-15 - 20:45 - 1
ReplaceTextPlugin PeterThoeny 2019-05-05 - 21:05 - 1
SID-02392 GabriellaTurek 2019-02-22 - 11:42 - 1
SID-02377 TomSchi 2018-10-18 - 16:23 - 1
SID-02376 EmielVanRiel 2018-10-16 - 09:13 - 1
SID-02370 ChristopherCrowe 2018-08-06 - 23:11 - 1
SID-02369 TWikiGuest 2018-08-06 - 15:50 - 1
SID-02360 TWikiGuest 2018-05-07 - 10:27 - 1
EmbeddedJSPlugin PeterThoeny 2018-04-20 - 00:06 - 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

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-04-21 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.