This question about Documentation: Answered

How to access TOPICTITLE preference from within a %SEARCH

I want to generate a list of topics that are child of the CahLabEs topic. Each element of this list should include the META:PREFERENCE:TOPICTITLE property of the given topic. I have tried different things without being able to access META:PREFERENCE:TOPICTITLE

%SEARCH{
   "parent.name = 'CahLabEs'" 
   type="query" 
   nonoise="on" 
   format="| [[$topic]] | $meta(preference.topictitle) | $wikiusername |" 
}%

-- GregoireLeclair - 22 Jul 2015

Here is a solution using DBCachePlugin

%DBQUERY{
   "parent='CahLabEs'"
   format="| [[$web.$topic]] | $expand(topictitle) | $expand(info.author) |"
}%

Note that the first column already displays the topic title rendering the link to the child topic.

Search itself is not able to access preference settings as part of the format string. You will have to use a nested QUERY macro to access values.

-- MichaelDaum - 09 Sep 2015
 

QuestionForm edit

Subject Documentation
Extension
Version Foswiki 2.0.0
Status Answered
Related Topics
Topic revision: r2 - 09 Sep 2015, MichaelDaum
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