You are here: Foswiki>Tasks Web>Item12955 (05 Jul 2015, GeorgeClark)Edit Attach

Item12955: Related Topics search in System.FAQForm

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: DataForms, Documentation
Branches: master
Reported By: GregorRudolf
Waiting For:
Last Change By: GeorgeClark
Related Topic textboxlist autocomplete in System.FAQForm used for FrequentlyAskedQuestions entries isn't working. It can be fixed by replacing:

%STARTSECTION{"topics"}%%SEARCH{
    "lc(name)=~lc('.*%URLPARAM{"q"}%.*')"
    web="%SYSTEMWEB%,%USERSWEB%"
    type="query"
    nonoise="on"
    format="<literal>$web.$topic</literal>"
}%%ENDSECTION{"topics"}%

with

%STARTSECTION{"topics"}%<literal><noautolink>%SEARCH{
  t="lc(name)~lc('*%URLPARAM{"term" default="somethingTAHTNevErExists"}%*')"
  "1"
  topic="*%URLPARAM{"term" default="somethingTaHTNeVERexists"}%*"
  type="query"
  nonoise="on"
  header="["
  format="\"$topic\""
  separator=", "
  footer="]"
  web="%URLPARAM{"web" default="%WEB%"}%"
}%</noautolink></literal>%ENDSECTION{"topics"}%

as it's done in Support.FAQForm.

-- GregorRudolf - 02 Jul 2014

 

ItemTemplate edit

Summary Related Topics search in System.FAQForm
ReportedBy GregorRudolf
Codebase 1.1.9
SVN Range
AppliesTo Engine
Component DataForms, Documentation
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:c3c4ee16f7bc
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches master
trunkCheckins
masterCheckins distro:c3c4ee16f7bc
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 05 Jul 2015, GeorgeClark - This page was cached on 25 Jun 2016 - 05: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