diff options
author | https://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web> | 2012-08-31 01:46:53 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2012-08-31 01:46:53 -0400 |
commit | 49498cedee90a68f61ec3cf666926c08254b96aa (patch) | |
tree | ea35dda6074e90f1bffda4487a79bab1d27139e7 /doc/plugins/contrib | |
parent | 7a8981437e6f2c2a02b0b212b84f74c895ef66f9 (diff) | |
download | ikiwiki-49498cedee90a68f61ec3cf666926c08254b96aa.tar ikiwiki-49498cedee90a68f61ec3cf666926c08254b96aa.tar.gz |
question how we should process multiple value fields
Diffstat (limited to 'doc/plugins/contrib')
-rw-r--r-- | doc/plugins/contrib/report/discussion.mdwn | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/plugins/contrib/report/discussion.mdwn b/doc/plugins/contrib/report/discussion.mdwn index e23a4ced4..419c4bca6 100644 --- a/doc/plugins/contrib/report/discussion.mdwn +++ b/doc/plugins/contrib/report/discussion.mdwn @@ -73,3 +73,8 @@ to select pages? How does it relate to [[todo/wikitrails]] or >>>>> It might be that adding arrays to the `field` plugin is a good way to go: after all, even though field=value is the most common, with the flexibility of things like YAML, one could define all sorts of things. What I'm not so sure about is how to return the values when queried, since some things would be expecting scalars all the time. Ah, perhaps I could use wantarray? >>>>> Is there a way of checking a HTML::Template template to see if it expecting an array for a particular value? >>>>> --[[KathrynAndersen]] + +How about arrays? +----------------- + +In [[plugins/contrib/getfield/discussion]], I outline how there's a problem in getfield displaying array refs when the data is a YAML array. I also propose a patch there so that arrays are join'd with a space separator, which is less than ideal, but at least works for getfield. However, for report, I am not sure it's as good. Should it make two rows for those? How should we parse this? Thanks. -- [[anarcat]] |