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
--
HelenJohnstone - 28 Mar 2007
Answer
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