Last modified: 2014-02-12 23:38:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42629, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40629 - Add 'values from query' parameter for the 'field' tag
Add 'values from query' parameter for the 'field' tag
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yury Katkov
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-29 22:50 UTC by Yury Katkov
Modified: 2014-02-12 23:38 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Yury Katkov 2012-09-29 22:50:51 UTC
Currently the 'values from concept' is the only way to get the list of allowed values from some SMW query. I propose to add 'values from query' parameter that will allow to use SMW query language to get the list of pages that will be the allowed values. This parameter will make Semantic Forms more flexible.

For forms that are created from a template there will be a way to specify the allowed values without creating the concepts.

1) simple example:
Here is a simplest possible example of the new 'values from query' parameter: 

{{field|somename|values from query=[[Category:Flowers]][[Color::Red]]|input type=listbox}} 

this will work in the same way as

{{field|somename|values from concept=Red Flowers|input type=listbox}}

2) real world example will make use of 'Reusing form elements' feature of Semantic Forms: 

Here is the Template:Relation_To_Flowers page:
<nowiki>{{</nowiki>field|somename|values from query=[[Category:Flowers]][[Color::{{{1}}}|input type=listbox  <nowiki>}}</nowiki>

Here is the Form:Some form

...//some form definition
{{Relation_To_Flowers|Red}}
Comment 1 db [inactive,noenotif] 2012-11-24 21:50:07 UTC
Merged Gerrit change #25755 links here, bug maybe resolved

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links