Changes

Jump to navigation Jump to search
section on the example data structure for Semantic Forms
include_once("$IP/extensions/SemanticForms/SemanticForms.php");
 
== Semantic Forms Examples (3/28/2016) ==
 
There's an [https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Quick_start_guide#Example example data structure] on the Semantic Forms page. I followed most of the steps, except for '''Enabling links to forms'''. I couldn't get #formredlink to work properly (the template wasn't parsing the silent property declaration with #set properly), so I instead added a line to the "Was written by" property page:
 
[[Creates pages with form::Author]]
 
And this way, once a new Book page is created, the redlink for the book's author (when clicked) automatically generates an Author page.
 
I also added #default_form lines at the end of the Book and Author template pages, e.g. for the Author template page, the last few lines looked like:
 
...
[[Category:Authors]]
{{#default_form:Author}}
</includeonly>
== To-do list ==
Anonymous user

Navigation menu