You are here: Foswiki>Tasks Web>Item11002 (24 Dec 2014, GeorgeClark)Edit Attach

Item11002: Implement a list formfield type

pencil
Priority: Normal
Current State: Waiting for Feedback
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: ListFormfieldPlugin
Branches:
Reported By: PaulHarvey
Waiting For: PaulHarvey
Last Change By: GeorgeClark
Basic spec:
  • | MyList | list+checkbox | | a, b, c|
    which will call on Foswiki::Form::Checkbox to render the field. If a MyList field contains a, b then this should create
     %META:LISTITEM{name="..." key="MyList" value="a" seq="1"}%
     %META:LISTITEM{name="..." key="MyList" value="b" seq="2"}%

Then we can
%SEARCH{
  "listitems[key='MyList' AND value='b']"
  type="query"
}%

This is vastly more efficient for MongoDBPlugin (and any other QuerySearch back-end using indexes).

4.8s to render a page querying 52,387 topics similar to %SEARCH{"MyList~'*a*'" type="query}%.

1.02s to render the same page using %SEARCH{"listitems[key='MyList' AND value='a']" type="query}%.

-- PaulHarvey - 27 Jul 2011

Paul, what's the status on this. Is the extension releasable?

-- GeorgeClark - 24 Dec 2014
 

ItemTemplate edit

Summary Implement a list formfield type
ReportedBy PaulHarvey
Codebase trunk
SVN Range
AppliesTo Extension
Component ListFormfieldPlugin
Priority Normal
CurrentState Waiting for Feedback
WaitingFor PaulHarvey
Checkins ListFormfieldPlugin:6d023ce69b57
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 24 Dec 2014, GeorgeClark
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