Tags:
create new tag
view all tags

Question

I have a search that trawls though a number of ChecklistItemState pages (generated by the Checklist plugin), looking for pages that have checklist items in a certain state (in this case, a state of 'open').

I then display the number of items in that state.

I would like to display a list of links direct to the item itself, that is, in the page associated with the ChecklistItemState page.

I am using the following:

<!--
%SEARCH{ "|open|" scope="text" topic="*IssuesChecklistItemState"  expandvariables="on" multiple="on" nosearch="on"  format="|o|"  }%
-->
Number of :open issues: %CALC{$ROW()}% 

This generates the total number of 'open' items.

Now the problem. How to generate links to the original page - not the checklistitemstate page. I've got the following that returns links to the checklistitem pages:

%SEARCH{ "|open|" scope="text" topic="*IssuesChecklistItemState"  expandvariables="on" multiple="on" nosearch="on"  
header=|*Page with open issues*|" format="|$topic|"  }% 

I have ensured that the checklistitemstate page is the child of the associated page, so need to be able to get the parent of the found topic.

Any ideas on how to do this?

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Search

-- HelenJohnstone - 28 Mar 2007

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.

Use $parent in the format parameter of SEARCH. See FormattedSearch.

-- PeterThoeny - 28 Mar 2007

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2007-03-28 - 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.