Tags:
create new tag
, view all tags

Question

I am trying to create a multi-level bulleted list out of search results. I have a bunch of topics with metadata and want to create a table of contents of sorts based on the metadata. e.g. Each topic contains Location (Chicago, Boston, NY, etc.) and Type (Server, Infrastructure, ...) variables and I want the search results to look like this:

  • Chicago
    • Server
      • Foo
      • Bar
    • Infrasctucture
      • CRAC1
  • Boston
    • Server
etc...

I tried doing some stuff with SpreadSheetPlugin, loading results into a variable through LISTUNIQUE and trying to display it through LISTMAP but it didn't interpret the formatting.

%CALC{ $SET(types,%SEARCH{ "Type.*?value=" scope="text" regex="on" nosearch="on" nototal="on" casesensitive="on" format="$formfield(Type)" separator=","}%)}%

%CALC{$LISTMAP("   * $item",$LISTUNIQUE($GET(types)))}%

Is this even possible without writing a plugin?

Thanks.

Bill

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, SpreadSheetPlugin
Server OS: RHEL WS3, kernel 2.4.21
Web server: Apache 2.0.46
Perl version: 5.8.0
Client OS:  
Web Browser:  
Categories: Search

-- BillGunter - 20 Jan 2005

Answer

Could you give a couple of examples of what is in the topics?

-- SamHasler - 21 Jan 2005

...or setup some sample pages in the Sandbox wiki

-- WillNorris - 21 Jan 2005

Have you looked at FormattedSearch#Nested_Search? Seems to me that this might get you most of the way where you want to go...

-- LynnwoodBrown - 21 Jan 2005

 
Topic revision: r5 - 2005-03-02 - 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.