Skip to content
Snippets Groups Projects
Commit 599b5e0b authored by Jan Haller's avatar Jan Haller
Browse files

ipa_haller_jan (WIP): Updated forms wikiPage and wikiEditor. refs #15634

parent 164000d5
No related branches found
No related tags found
2 merge requests!691New version v24.3.0,!607ipa_haller_jan: QFQ-Wiki. refs #15634
Pipeline #9919 passed
......@@ -29,9 +29,51 @@
"parameterLanguageD": "",
"recordLockTimeoutSeconds": 900,
"deleted": "no",
"modified": "2023-07-11 18:13:11",
"modified": "2023-07-18 13:44:34",
"created": "2023-05-10 10:48:25",
"FormElement_ff": [
{
"dynamicUpdate": "no",
"encryption": "no",
"encryptionMethod": "Default",
"enabled": "yes",
"name": "myEditorPill",
"label": "Editor",
"mode": "show",
"modeSql": "",
"class": "container",
"type": "pill",
"subrecordOption": "",
"encode": "specialchar",
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 10,
"tabindex": 0,
"size": "",
"maxLength": "",
"labelAlign": "default",
"bsLabelColumns": "",
"bsInputColumns": "",
"bsNoteColumns": "",
"rowLabelInputNote": "row,label,\/label,input,\/input,note,\/note,\/row",
"note": "",
"adminNote": "",
"tooltip": "",
"placeholder": "",
"value": "",
"sql1": "",
"parameter": "",
"parameterLanguageA": "",
"parameterLanguageB": "",
"parameterLanguageC": "",
"parameterLanguageD": "",
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-07-18 13:54:08",
"created": "2023-07-18 15:54:02"
},
{
"dynamicUpdate": "no",
"encryption": "no",
......@@ -48,7 +90,7 @@
"checkType": "all",
"checkPattern": "",
"onChange": "",
"ord": 10,
"ord": 20,
"tabindex": 0,
"size": "400,600",
"maxLength": "",
......@@ -63,7 +105,7 @@
"placeholder": "",
"value": "",
"sql1": "",
"parameter": "editor-plugins=code link lists searchreplace table textcolor textpattern visualchars image,paste\r\neditor-toolbar=code searchreplace undo redo | styleselect link table | bullist numlist outdent indent | forecolor backcolor bold italic image\r\neditor-menubar=false\r\neditor-statusbar=false\r\neditor-paste_data_images=true\r\nfileUploadPath=fileadmin\/imageUploadDir\/wiki",
"parameter": "editor-plugins=code link lists searchreplace table textcolor textpattern visualchars image,paste\r\neditor-toolbar=code searchreplace undo redo | styleselect link table | bullist numlist outdent indent | forecolor backcolor bold italic image\r\neditor-menubar=false\r\neditor-statusbar=false\r\neditor-paste_data_images=true\r\nfileUploadPath=fileadmin\/wiki{{pageSlug:T}}\/img\r\nextraButtonInfo=<strong>Macros<\/strong><\/br><ul><li>{{toc}}<\/br>Creates a table of contents with links to the headings on the current page. If no headings are found, '{{toc}}' is returned.<\/li><li>{{childPages}}<\/br> Generates a list of links to the child pages of the current page. If no child pages are found, '{{childPages}}' is returned.<\/li><li>{{<i>wikiPage<\/i>#<i>Heading<\/i>}}<\/br>Creates a link to a wiki page within the same wiki by replacing <i>wikiPage<\/i> with the name of the wiki page and <i>Heading<\/i> with the title of the paragraph. If the wiki page is not found, '{{<i>wikiPage<\/i>#<i>Heading<\/i>}}' is returned.<\/li><li>{{<i>pageSlug<\/i>\/<i>wikiPage<\/i>#<i>Heading<\/i>}}<\/br>Creates a link to a wiki page in another wiki by replacing <i>pageSlug<\/i> with the page slug of the wiki, <i>wikiPage<\/i> with the name of the wiki page and <i>Heading<\/i> with the title of the paragraph. If the wiki page is not found, '{{<i>pageSlug<\/i>\/<i>wikiPage<\/i>#<i>Heading<\/i>}}' is returned.<\/li><li>{{collapse(<i>[Text is shown]<\/i>)}}<\/br>Text is hidden.<\/br>{{collapse}}<\/br>Creates a toggleable element, that will show\/hide text. Text within <i>[ ]<\/i> is optional.<\/li><\/ul><\/br>Important:<\/br>{{toc}}, {{childPages}}, {{collapse([Text is shown])}}, {{collapse}} must be used on a separate line to ensure their functionality.<\/br><\/br><strong>Link to file<\/strong><\/br><ol><li>Copy the path from the \"Upload\" tab<\/li><li>Insert a link in the editor<\/li><li>Paste the path into the field \"Url\"<\/li><\/ol><\/br>For further information, visit <a href=\"https:\/\/docs.qfq.io\/en\/master\/Wiki.html\" target=\"_blank\">QFQ documentation<\/a>.",
"parameterLanguageA": "",
"parameterLanguageB": "",
"parameterLanguageC": "",
......@@ -71,8 +113,9 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-07-12 11:47:46",
"created": "2023-05-10 11:02:27"
"modified": "2023-07-19 12:19:44",
"created": "2023-05-10 11:02:27",
"containerName_ff": "myEditorPill"
},
{
"dynamicUpdate": "no",
......@@ -90,7 +133,7 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 20,
"ord": 30,
"tabindex": 0,
"size": "",
"maxLength": "",
......@@ -113,8 +156,94 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-07-12 14:21:48",
"created": "2023-05-25 12:30:33"
"modified": "2023-07-18 15:54:20",
"created": "2023-05-25 12:30:33",
"containerName_ff": "myEditorPill"
},
{
"dynamicUpdate": "no",
"encryption": "no",
"encryptionMethod": "Default",
"enabled": "yes",
"name": "myUploadPill",
"label": "Upload",
"mode": "show",
"modeSql": "",
"class": "container",
"type": "pill",
"subrecordOption": "",
"encode": "specialchar",
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 40,
"tabindex": 0,
"size": "",
"maxLength": "",
"labelAlign": "default",
"bsLabelColumns": "",
"bsInputColumns": "",
"bsNoteColumns": "",
"rowLabelInputNote": "row,label,\/label,input,\/input,note,\/note,\/row",
"note": "",
"adminNote": "",
"tooltip": "",
"placeholder": "",
"value": "",
"sql1": "",
"parameter": "",
"parameterLanguageA": "",
"parameterLanguageB": "",
"parameterLanguageC": "",
"parameterLanguageD": "",
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-07-18 15:54:52",
"created": "2023-07-18 15:54:47"
},
{
"dynamicUpdate": "no",
"encryption": "no",
"encryptionMethod": "Default",
"enabled": "yes",
"name": "myUploadReport",
"label": "",
"mode": "show",
"modeSql": "",
"class": "native",
"type": "note",
"subrecordOption": "",
"encode": "specialchar",
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 50,
"tabindex": 0,
"size": "",
"maxLength": "",
"labelAlign": "default",
"bsLabelColumns": "0",
"bsInputColumns": "12",
"bsNoteColumns": "0",
"rowLabelInputNote": "row,label,\/label,input,\/input,note,\/note,\/row",
"note": "",
"adminNote": "",
"tooltip": "",
"placeholder": "",
"value": "#!report\r\n#\r\n#\r\n\r\n10 {\r\n sql = SELECT CONCAT('p:{{pageSlug:T}}&form=wikiUpload&r=', id, '|s|b|E') AS _link\r\n \t\t\t\t\t , CONCAT('F:', pathFileName\r\n , '|t:', QLEFT(SUBSTRING_INDEX(pathFileName, '\/', -1), 30)\r\n , '|d:', SUBSTRING_INDEX(pathFileName, '\/', -1)\r\n , '|o:', SUBSTRING_INDEX(pathFileName, '\/', -1)\r\n , '|s|b|g:_blank|G:glyphicon glyphicon-paperclip|M:file'\r\n ) AS _link\r\n , QIFEMPTY(feUser, 'anonymous')\r\n , created\r\n , CONCAT('y:', pathFileName) AS _yank\r\n \t\t\t , CONCAT('U:table=WikiAttachment&r=', id, '|q:Do you want to delete <i>', SUBSTRING_INDEX(pathFileName, '\/', -1), '<\/i> ?') AS _paged\r\n \t\tFROM WikiAttachment\r\n WHERE wpId = '{{wpIdPrevious:S0}}'\r\n AND pathFileName != ''\r\n ORDER BY modified ASC\r\n\r\n shead = <div style=\"margin-right:-5px; margin-left:-15px;\">\r\n \t\t\t\t <table class=\"table table-hover qfq-table-100 qfq-subrecord-table qfq-color-grey-2\">\r\n \t\t\t\t <caption class=\"qfq-subrecord-title\">Files<\/caption>\r\n <thead>\r\n <tr>\r\n <th style=\"width: 40px;\">{{'p:{{pageSlug:T}}&form=wikiUpload&r=0&wpId={{wpIdPrevious:S0}}|s|b|N' AS _link}}<\/th>\r\n head = <th>File<\/th>\r\n <th>User<\/th>\r\n <th>Date<\/th>\r\n <th style=\"width: 40px;\">Copy path<\/th><th style=\"width: 40px;\"><\/th>\r\n <\/tr>\r\n <\/thead>\r\n <tbody>\r\n stail = <\/table>\r\n <\/div>\r\n tail = <\/tbody>\r\n fbeg = <td>\r\n fend = <\/td>\r\n rbeg = <tr>\r\n rend = <\/tr> \r\n}",
"sql1": "",
"parameter": "",
"parameterLanguageA": "",
"parameterLanguageB": "",
"parameterLanguageC": "",
"parameterLanguageD": "",
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-07-19 13:08:52",
"created": "2023-07-18 15:55:18",
"containerName_ff": "myUploadPill"
}
]
}
\ No newline at end of file
......@@ -17,7 +17,7 @@
"multiDetailForm": "",
"multiDetailFormParameter": "",
"forwardMode": "url",
"forwardPage": "url|{{baseUrl:Y}}{{pageSlug:T}}?wpId={{id:R0}}",
"forwardPage": "url|{{pageSlug:T}}?wpId={{id:R0}}",
"labelAlign": "default",
"bsLabelColumns": "",
"bsInputColumns": "",
......@@ -29,7 +29,7 @@
"parameterLanguageD": "",
"recordLockTimeoutSeconds": 900,
"deleted": "no",
"modified": "2023-07-11 15:54:13",
"modified": "2023-07-19 10:58:47",
"created": "2023-05-31 13:18:26",
"FormElement_ff": [
{
......@@ -37,7 +37,7 @@
"encryption": "no",
"encryptionMethod": "Default",
"enabled": "yes",
"name": "general",
"name": "myGeneralPill",
"label": "General",
"mode": "show",
"modeSql": "",
......@@ -71,7 +71,7 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-18 16:13:31",
"created": "2023-05-31 13:40:16"
},
{
......@@ -113,9 +113,9 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-18 13:44:34",
"created": "2023-05-31 13:19:04",
"containerName_ff": "general"
"containerName_ff": "myGeneralPill"
},
{
"dynamicUpdate": "no",
......@@ -156,9 +156,9 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-18 13:44:34",
"created": "2023-05-31 13:23:21",
"containerName_ff": "general"
"containerName_ff": "myGeneralPill"
},
{
"dynamicUpdate": "no",
......@@ -199,19 +199,62 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-18 13:44:34",
"created": "2023-05-31 13:19:31",
"containerName_ff": "general"
"containerName_ff": "myGeneralPill"
},
{
"dynamicUpdate": "no",
"encryption": "no",
"encryptionMethod": "Default",
"enabled": "yes",
"name": "access",
"name": "myChildPages",
"label": "Child pages",
"mode": "show",
"modeSql": "",
"class": "native",
"type": "subrecord",
"subrecordOption": "edit,delete,new",
"encode": "specialchar",
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 50,
"tabindex": 0,
"size": "",
"maxLength": "",
"labelAlign": "default",
"bsLabelColumns": "",
"bsInputColumns": "",
"bsNoteColumns": "",
"rowLabelInputNote": "row,label,\/label,input,\/input,note,\/note,\/row",
"note": "",
"adminNote": "",
"tooltip": "",
"placeholder": "",
"value": "",
"sql1": "{{!SELECT id AS _id, name AS Name, QIFEMPTY(author, 'anonymous') AS Author, CONCAT('p:{{pageSlug:T}}&wpId=', id, '|b|G:glyphicon glyphicon-new-window|t:Show|g:_blank') AS 'link|Link' FROM WikiPage WHERE wpIdParent = '{{id:R0}}' AND ISNULL(wpIdCurrent) AND (author = '{{feUser:TE}}' OR '{{beUser:TE}}' != '' OR (author = '' AND '{{feUser:TE}}' != ''))}}",
"parameter": "form=wikiPage",
"parameterLanguageA": "",
"parameterLanguageB": "",
"parameterLanguageC": "",
"parameterLanguageD": "",
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-07-19 12:39:08",
"created": "2023-07-18 16:17:01",
"containerName_ff": "myGeneralPill"
},
{
"dynamicUpdate": "no",
"encryption": "no",
"encryptionMethod": "Default",
"enabled": "yes",
"name": "myAccessPill",
"label": "Access",
"mode": "show",
"modeSql": "{{SELECT IF('{{beUser:T}}' != '' OR ('{{feUser:T}}' = '{{author:RE}}' AND '{{author:RE}}' != '') OR ('{{id:R0'}}' = 0 AND '{{feUser:T}}' != '' AND '{{beUser:T}}' != '') , 'show', 'hidden')}}",
"modeSql": "{{SELECT IF('{{beUser:TE}}' != '' OR ('{{feUser:TE}}' = '{{author:RE}}' AND '{{feUser:TE}}' != '') OR ('{{id:R0'}}' = 0 AND '{{feUser:TE}}' != '' AND '{{beUser:TE}}' != '') , 'show', 'hidden')}}",
"class": "container",
"type": "pill",
"subrecordOption": "",
......@@ -219,7 +262,7 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 50,
"ord": 60,
"tabindex": 0,
"size": "",
"maxLength": "",
......@@ -242,7 +285,7 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-19 12:24:16",
"created": "2023-05-31 13:40:30"
},
{
......@@ -261,7 +304,7 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 60,
"ord": 70,
"tabindex": 0,
"size": "",
"maxLength": "",
......@@ -276,7 +319,7 @@
"placeholder": "",
"value": "{{roUser:SE}}",
"sql1": "",
"parameter": "",
"parameter": "extraButtonInfo=Comma separated list of usernames (no whitespaces).",
"parameterLanguageA": "",
"parameterLanguageB": "",
"parameterLanguageC": "",
......@@ -284,9 +327,9 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-19 11:04:19",
"created": "2023-05-31 13:32:47",
"containerName_ff": "access"
"containerName_ff": "myAccessPill"
},
{
"dynamicUpdate": "no",
......@@ -304,14 +347,14 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 70,
"ord": 80,
"tabindex": 0,
"size": "",
"maxLength": "",
"labelAlign": "default",
"bsLabelColumns": "",
"bsInputColumns": "",
"bsNoteColumns": "",
"bsLabelColumns": "3",
"bsInputColumns": "9",
"bsNoteColumns": "0",
"rowLabelInputNote": "row,label,\/label,input,\/input,note,\/note,\/row",
"note": "",
"adminNote": "",
......@@ -327,9 +370,9 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-07-11 12:33:30",
"modified": "2023-07-19 11:05:18",
"created": "2023-05-31 13:31:51",
"containerName_ff": "access"
"containerName_ff": "myAccessPill"
},
{
"dynamicUpdate": "no",
......@@ -347,7 +390,7 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 80,
"ord": 90,
"tabindex": 0,
"size": "",
"maxLength": "",
......@@ -362,7 +405,7 @@
"placeholder": "",
"value": "{{rwUser:SE}}",
"sql1": "",
"parameter": "",
"parameter": "extraButtonInfo=Comma separated list of usernames (no whitespaces).",
"parameterLanguageA": "",
"parameterLanguageB": "",
"parameterLanguageC": "",
......@@ -370,9 +413,9 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-19 11:04:54",
"created": "2023-05-31 13:34:05",
"containerName_ff": "access"
"containerName_ff": "myAccessPill"
},
{
"dynamicUpdate": "no",
......@@ -390,14 +433,14 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 90,
"ord": 100,
"tabindex": 0,
"size": "",
"maxLength": "",
"labelAlign": "default",
"bsLabelColumns": "",
"bsInputColumns": "",
"bsNoteColumns": "",
"bsLabelColumns": "3",
"bsInputColumns": "9",
"bsNoteColumns": "0",
"rowLabelInputNote": "row,label,\/label,input,\/input,note,\/note,\/row",
"note": "",
"adminNote": "",
......@@ -413,9 +456,9 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-07-11 12:37:35",
"modified": "2023-07-19 11:05:45",
"created": "2023-05-31 13:34:22",
"containerName_ff": "access"
"containerName_ff": "myAccessPill"
},
{
"dynamicUpdate": "yes",
......@@ -433,14 +476,14 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 100,
"ord": 110,
"tabindex": 0,
"size": "",
"maxLength": "",
"maxLength": "3",
"labelAlign": "default",
"bsLabelColumns": "",
"bsInputColumns": "",
"bsNoteColumns": "",
"bsLabelColumns": "3",
"bsInputColumns": "9",
"bsNoteColumns": "0",
"rowLabelInputNote": "row,label,\/label,input,\/input,note,\/note,\/row",
"note": "",
"adminNote": "",
......@@ -456,9 +499,9 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-19 11:06:49",
"created": "2023-05-31 13:33:05",
"containerName_ff": "access"
"containerName_ff": "myAccessPill"
},
{
"dynamicUpdate": "yes",
......@@ -476,7 +519,7 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 110,
"ord": 120,
"tabindex": 0,
"size": "",
"maxLength": "",
......@@ -491,7 +534,7 @@
"placeholder": "",
"value": "",
"sql1": "",
"parameter": "checked = '{{feUser:T}}'\r\nunchecked = '0'",
"parameter": "checked = '{{feUser:TE}}'\r\nunchecked = '0'",
"parameterLanguageA": "",
"parameterLanguageB": "",
"parameterLanguageC": "",
......@@ -499,16 +542,16 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-18 17:16:06",
"created": "2023-05-31 13:35:56",
"containerName_ff": "access"
"containerName_ff": "myAccessPill"
},
{
"dynamicUpdate": "no",
"encryption": "no",
"encryptionMethod": "Default",
"enabled": "yes",
"name": "actionUpdateAfterFirstInsert",
"name": "myActionUpdateAfterFirstInsert",
"label": "",
"mode": "show",
"modeSql": "",
......@@ -519,7 +562,7 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 140,
"ord": 130,
"tabindex": 0,
"size": "",
"maxLength": "",
......@@ -534,7 +577,7 @@
"placeholder": "",
"value": "",
"sql1": "",
"parameter": "sqlAfter = {{UPDATE WikiPage SET pageSlug = '{{pageSlug:T}}', author = '{{feUser:T}}' WHERE id = '{{id:R0}}'}}",
"parameter": "sqlAfter = {{UPDATE WikiPage SET pageSlug = '{{pageSlug:T}}', author = '{{feUser:TE}}' WHERE id = '{{id:R0}}'}}",
"parameterLanguageA": "",
"parameterLanguageB": "",
"parameterLanguageC": "",
......@@ -542,7 +585,7 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-19 12:26:57",
"created": "2023-05-31 13:59:11"
},
{
......@@ -550,7 +593,7 @@
"encryption": "no",
"encryptionMethod": "Default",
"enabled": "yes",
"name": "actionUpdatePublicAccess",
"name": "myActionUpdatePublicAccess",
"label": "",
"mode": "show",
"modeSql": "",
......@@ -561,7 +604,7 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 150,
"ord": 140,
"tabindex": 0,
"size": "",
"maxLength": "",
......@@ -584,7 +627,7 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-18 17:01:48",
"created": "2023-06-01 10:33:29"
},
{
......@@ -592,7 +635,7 @@
"encryption": "no",
"encryptionMethod": "Default",
"enabled": "yes",
"name": "beforeDelete",
"name": "myActionBeforeDelete",
"label": "",
"mode": "show",
"modeSql": "",
......@@ -603,7 +646,7 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 180,
"ord": 150,
"tabindex": 0,
"size": "",
"maxLength": "",
......@@ -626,7 +669,7 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-18 17:02:01",
"created": "2023-06-06 13:23:22"
},
{
......@@ -634,7 +677,7 @@
"encryption": "no",
"encryptionMethod": "Default",
"enabled": "yes",
"name": "actionValidate",
"name": "myActionValidate",
"label": "",
"mode": "show",
"modeSql": "",
......@@ -645,7 +688,7 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 190,
"ord": 160,
"tabindex": 0,
"size": "",
"maxLength": "",
......@@ -668,7 +711,7 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2023-06-12 12:23:41",
"modified": "2023-07-18 17:02:09",
"created": "2023-06-06 13:38:58"
}
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment