Item10935: please add topicFooter parameter

pencil
Priority: Enhancement
Current State: Waiting for Feedback
Released In: n/a
Target Release: major
Applies To: Extension
Component: FormFieldListPlugin
Branches:
Reported By: DiabJerius
Waiting For: DiabJerius
Last Change By: DiabJerius
I'm on a quest to generate XML output from form data, and this plugin looked like it could do that with the least dependencies and bother. Except... there's no topicfooter parameter.

For example, I'm trying to dump out all users belonging to a particular group

<literal>
%FORMFIELDLIST{
  web="%USERSWEB%"
 topic="%GROUPINFO{"AdjustableXrayOpticsGroup" separator="," format="$username"}%"
header="<xml>$n" footer="$n</xml>$n"
topicheader="<user wikiname=\"$topicName\">"
format="<$name>$value</$name>"
separator="$n"
}%
</literal>

And it works brilliantly, except that I can't close off the user element because there's no topicfooter.

Please consider adding a topicfooter parameter.

Thanks!

-- DiabJerius - 30 Jun 2011

Here's a version which just use core features:

%STARTSECTION{"xmlusers"}%<noautolink><literal><?xml version='1.0' encoding='%QUERY{"{Site}{CharSet}"}%'?>
<xml>
%FORMAT{
  "%GROUPINFO{"InfrastructureTaskTeamGroup" separator="," format="$wikiusername"}%"
  web="%USERSWEB%"
  type="topic"
  format="$percntINCLUDE{\"%TOPIC%\" section=\"user\" usertopic=\"$topic\"}$percnt"
}%
</xml></literal></noautolink>%ENDSECTION{"xmlusers"}%

%STARTSECTION{"user"}%%FORMAT{
  "%QUERY{"'%USERSWEB%.%usertopic%'/fields.name"}%"
  type="string"
  header="  <user wikiname='%usertopic%'>$n"
  format="    <$item>$percntQUERY{'%USERSWEB%.%usertopic%'/$item}$percnt</$item>"
  footer="$n  </user>"
}%%ENDSECTION{"user"}%

-- PaulHarvey - 01 Jul 2011

Turned this into Support.Faq50

-- PaulHarvey - 01 Jul 2011

Very nice! Thanks.

-- DiabJerius - 01 Jul 2011
 

ItemTemplate edit

Summary please add topicFooter parameter
ReportedBy DiabJerius
Codebase
SVN Range
AppliesTo Extension
Component FormFieldListPlugin
Priority Enhancement
CurrentState Waiting for Feedback
WaitingFor DiabJerius
Checkins
TargetRelease major
ReleasedIn n/a
Topic revision: r3 - 01 Jul 2011, DiabJerius
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