Priority: Enhancement
Current State: Waiting for Feedback
Released In: n/a
Target Release: major
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