This question about Topic Markup Language and applications: Answered

Rendering search results using sectional includes

How can I use a sectional include to render each matching result from a SEARCH?

simple search results formatting:
%SEARCH{"QuestionForm" 
  type="query" 
  excludetopic="QuestionTemplate" 
  nonoise="on" 
  limit="4" 
  format="[[$web.$topic][$formfield(TopicTitle)]]"
  separator=" · "
}%

rendering a single entry:
%INCLUDE{"%TOPIC%" section="render-question" THETOPIC="Question0" }%

THETOPIC=[Question0] TopicTitle from FORMFIELD=[Is it possible to store topics and attachments on a RAID?] TopicTitle from META=[]

now, i'd like to combine the two:

rendering search results with a sectional include (defined on this page):
%SEARCH{"QuestionForm"
type="query"
excludetopic="QuestionTemplate"
nonoise="on"
limit="4"
format="%INCLUDE{"%TOPIC%" section="render-question" THETOPIC="$topic"}%"
}%

but, this didn't print out any of the FORMFIELD information


%STARTSECTION{"render-question"}%
<div>
THETOPIC=[%THETOPIC%]
!TopicTitle from FORMFIELD=[%FORMFIELD{"TopicTitle" topic="%THETOPIC%"}%]
!TopicTitle from META=[%META{"formfield" name="TopicTitle" topic="%THETOPIC%"}%]
</div>
%ENDSECTION{"render-question"}%

-- WillNorris - 19 Feb 2009

%SEARCH{"QuestionForm"
type="query"
excludetopic="QuestionTemplate"
nonoise="on"
limit="4"
format="$percntINCLUDE{$quot%TOPIC%$quot section=$quotrender-question$quot THETOPIC=$quot$topic$quot}$percnt"
}%

-- SvenDowideit - 19 Feb 2009

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version
Status Answered
Topic revision: r3 - 19 Feb 2009, WillNorris - This page was cached on 16 Jun 2019 - 20:34.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy