cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about : Asked

Add custom fields to hits in blog entry search

Is there an easy way to customize the results displayed for each hit in solrsearchview? The solrsearch feature of foswiki is fantastic for filtering down using facets to the find the right page. It is one of the most powerful feature of the wiki. In the case of blog entries a custom template is used to display results, which is defined in BlogSearchViewTemplate in the Blog-App. At the bottom of this template there is a section specifically for BlogEntry hits. Several specific fields are referenced like the {{:title}} and {{:field_Category_flat_lst}}, however the options do not extend to formfields specific to each topic type.

Is there a way to add fields to these templates from custom form definitions that might be attached to other topics? Or would this involve a lot of changes.

An alternative would be the ability to use a DBCALL to render a template for topics. However, when I tried to do this the macro didn't work properly because the {{:web}} and {{:topic}} were not properly passed through. Any hints or suggestions would be very much appreciated.

-- KarlDuderstadt - 06 Mar 2017

 

QuestionForm edit

Subject
Extension BlogPlugin, SolrPlugin
Version Foswiki 2.1.2
Status Asked
Related Topics
Topic revision: r1 - 06 Mar 2017, KarlDuderstadt - This page was cached on 18 Sep 2018 - 00:46.

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