https://bugzilla.wikimedia.org/show_bug.cgi?id=22821

           Summary: allow for parsing of field definition default
                    parameter for dynamic content
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: SemanticForms
        AssignedTo: yaro...@gmail.com
        ReportedBy: xolog...@hotmail.com
                CC: wikibugs-l@lists.wikimedia.org


Created an attachment (id=7195)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=7195)
patch for SF1.9 to allow default parsing

Adding the possibility to parse the default value allows for more dynamic form
content. E.g. the default values could be based on a SMW query.

Attached is a patch for includes/SF_FormPrinter.inc for SF 1.9.
It was tested with:
* ParserFunctions and other such extensions
* #ask queries
* sfgCacheFormDefinitions enabled

The parsing only happens once during initial display of the form, not on
previews and submits.

The same approach could probably be used for the "values=" parameter, but has
not yet been implemented and tested.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to