From: Bob M. <unc...@gm...> - 2010-03-04 21:31:21
|
I'm also on SF Version 1.8.8, and get exactly the behaviour you describe. I didn't read the documentation though, so didn't realise this was broken (or wrongly documented). I think the multiple instances thing should work for your use case, but think it was intended for repeating whole chunks of form (such as the fields required to build an SIO, which is what I have used it for successfully). For fields with multiple values it would be a bit clunky. On Thu, Mar 4, 2010 at 8:15 PM, Antonio Orlando <an...@li...> wrote: > In a form, I would like to save multiple values for a "Related entries" > property. In input, I need autocomplete on existing wiki pages. In view, > of course each entry has to be a link to the wiki page. > > > So, my "Related entries" property page has: > > [[Has type::Page]] > > > The Form has: > > {| class="formtable" style="background: #eeeeee; border:1px dotted #ccc; > padding:20px; margin-top:30px;" > ! Related entries: <small>(use ";" if more than one)</small> > | {{{field|Related entries|autocomplete on category=Category1, > Category2|delimiter=;|list}}} > |} > > > And the Template has: > > {{#arraymap:{{{Voci correlate|}}}|;|x|[[Voci correlate::x]]}} > > > This almost works, but the problem is that during input, it autocompletes > when entering the first one, while after ";" it stops autocompleting. > Semantic Forms documentation instead says: > > "If a field is specified to hold multiple values (see below), > autocompletion will, by default, support multiple values: after a value is > entered, and a delimiter placed, a new autocompletion will start for the > next value. You can manually specify that a field should have > multiple-value autocompletion, by adding the "list" parameter to the > field's definition. You can also specify the delimiter for this list of > values, using the "delimiter=..." parameter (the default is a comma)." > > So I'd like to know how to make autocompletion work after the first one > entry input, i.e. after the semicolon. > > > Or, I could use a Multiple Instance template in the form, something like: > > {{{for template|Related entry|multiple|label=Related entries}}} > '''Related entry:''' {{{field|1}}} > {{{end template}}} > > ...but I've not understood how these multiple instances templates (and > maybe SIO?) have to be used, so any suggestion with steps towards what > I've written at the beginning will be helpful. > > Using Semantic Forms 1.8.8 > > -- > Antonio > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > -- http://darwintunes.org - a test-tube for cultural evolution http://evolectronica.com - survival of the funkiest http://compare-stuff.com - confused? you will be! http://twitter.com/darwintunes http://twitter.com/bobmaccallum |