Steven Heynderickx wrote on 19 Feb 2010 12:04
This is not a design but a question if somebody else but me would be interested in a selector that would only select pages where a certain form-field is empty or not empty.
So if I wish to make a list of all the people that filled in their hobby, the code could look like this
[[module listPages category="forminput" notempty="hobby"]]
%%form_data{name}%% - %%form_data{hobby}%%
[[/module]]
Maybe this is already integrated but I don't see the formulation of a design like this.
Interesting idea. I'll work this into the design.
Portfolio
I can only see myself ever using the empty=" " option, to find pages that are incomplete. But notempty=" " should definitely be there as well so that all possibilities are accounted for.
I agree, it'd be very useful.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
I'm still learning my way around, currently combining DataForms and ListPages modules to try to link two sets of data together.
Got here while trying to find out if form_data{field} values can be passed by @URL
I would like to be able to use ListPages to help clients find records with missing data, so empty is helpful.
I can also see good reporting page applications for notempty - eg where a task completion date is available, listed by completion date, leaving out incomplete 'tasks' from the list.
Site Administrator and Media Officer :: Angel Gowns for Australian Angel Babies Inc. :: http://angelgowns.org.au/
http://agdbdev.wikidot.com | http://angelgownsfor.wikidot.com | http://agfaabdb.wikidot.com