CRUD: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
Subpages:
No edit summary
No edit summary
Line 1: Line 1:
The following demonstrates the c
The following demonstrates the creation of a [https://en.wikipedia.org/wiki/Create,_read,_update_and_delete CRUD] (create, read, update, delete) interface performed through a button opening a popup form, a <code>pagepropertiesquery</code> parser function that creates the table, and a template, namely [[Template:Task_action]], rendered within the column "action", holding another form that edits the same schema ([[PagePropertiesSchema:Task]]) based on the data of the page with value <code><nowiki>{{{pagetitle}}}</nowiki></code>. <code><nowiki>{{{pagetitle}}}</nowiki></code> is indeed the complete title of the article related to each row of the generated table, and is available in templates associated to printout or the entire result printer.


   
   

Revision as of 10:05, 30 December 2023

The following demonstrates the creation of a CRUD (create, read, update, delete) interface performed through a button opening a popup form, a pagepropertiesquery parser function that creates the table, and a template, namely Template:Task_action, rendered within the column "action", holding another form that edits the same schema (PagePropertiesSchema:Task) based on the data of the page with value {{{pagetitle}}}. {{{pagetitle}}} is indeed the complete title of the article related to each row of the generated table, and is available in templates associated to printout or the entire result printer.


{{#pagepropertiesform: Task |title = Task |action = create |edit-page = |return-page = CRUD |view = popup |popup-size = large |css-class = |pagename-formula =CRUD/<id-increment> |target-slot = main |edit-freetext = false |edit-categories = false |edit-content-model = false |default-categories = |default-content-model = wikitext |layout-align = top |popup-help = true |submit-button-text = |layout = tabs |validate-button-text = }}



{{#pagepropertiesquery: CRUD/~ |schema=Task |?assignee |?extension |?status |?action |template?action=Task action |format=datatable }}