Tags:
create new tag
, view all tags

Question

I'd just like to say, TWiki is amazing!

I'd like to include numbers in topic names, e.g. SamAbrams12, SamAbrams13. But when I try to search for SamAbrams12 it gets truncated to SamAbrams, and I get every occurence of SamAbrams1, SamAbrams2, etc. Is there a way to find SamAbrams12?

Happy holidays everyone!

Environment

TWiki version: TWikiBetaRelease
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Dreamhost standard account
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- SamAbrams - 24 Dec 2003

Answer

I do not understand what you want to accomplish. Can you explain in more detail?

-- PeterThoeny - 26 Dec 2003

Yes, Peter, let me give a much broader example on this holiday evening.

(1) After reading AllowDynamicTopicNameCreation, I decided to setup a form that lets users create topics, using SERVER TIME to create a 10 digit topic name. My reason for this is to get around the problem of users struggling to find a unique topic name. To get around the concern of two users setting up a topic at the exact same time, I decided combine SERVER TIME with the user's WIKINAME, as follows:

<input type="hidden" name="topic" value="%WIKINAME%%SERVERTIME{"$ye$mo$day$hour$min$sec"}%"

The result for me is an unlimited supply of personal topics, such as SamAbrams031223152615, SamAbrams031223152622, etc. DONE !

(2) Next, I want users to be able to search for SamAbrams031223152615, by typing this into the search field, or a search string such as:

%SEARCH{ "SamAbrams031223152615" web="Main" nosummary="on" regex="on" nosearch="on" }%

The problem is that SamAbrams031223152615 gets truncated to SamAbrams, and brings up a mess of all my personal topics.

Can you think of a workaround?

-- SamAbrams - 26 Dec 2003

This should search just the one topic:

%SEARCH{ "^SamAbrams031223152615$" scope="topic" web="Main" nosummary="on" regex="on" nosearch="on" limit="1" }%

That is, you search on topic name, not text.

If you build a query by example form you get the topic name via URL parameter:

%SEARCH{ "^%URLPARAM{topicname}%$" scope="topic" web="Main" nosummary="on" regex="on" nosearch="on" limit="1" }%

Study TWikiInstallation for an example.

-- PeterThoeny - 26 Dec 2003

Topic revision: r4 - 2003-12-26 - 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.