-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from tritum/typo3-v13
Add TYPO3 v13 compatibility
- Loading branch information
Showing
10 changed files
with
221 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
return [ | ||
'dependencies' => ['form'], | ||
'imports' => [ | ||
'@tritum/form-element-linked-checkbox/' => 'EXT:form_element_linked_checkbox/Resources/Public/JavaScript/', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: tritum/form-element-linked-checkbox | ||
label: "Form: Linked checkbox element" | ||
dependencies: | ||
- typo3/form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import 'EXT:form_element_linked_checkbox/Configuration/TypoScript/setup.typoscript' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,80 @@ | ||
TYPO3: | ||
CMS: | ||
Form: | ||
prototypes: | ||
standard: | ||
formElementsDefinition: | ||
Form: | ||
renderingOptions: | ||
partialRootPaths: | ||
1505042806: 'EXT:form_element_linked_checkbox/Resources/Private/Frontend/Partials/' | ||
prototypes: | ||
standard: | ||
formElementsDefinition: | ||
Form: | ||
renderingOptions: | ||
partialRootPaths: | ||
1505042806: 'EXT:form_element_linked_checkbox/Resources/Private/Frontend/Partials/' | ||
|
||
LinkedCheckbox: | ||
# inherit configuration from checkbox element | ||
__inheritances: | ||
10: 'TYPO3.CMS.Form.prototypes.standard.formElementsDefinition.Checkbox' | ||
formEditor: | ||
label: 'Linked checkbox' | ||
groupSorting: 150 | ||
properties: | ||
pageUid: '' | ||
predefinedDefaults: | ||
properties: | ||
pageUid: '' | ||
linkText: 'formEditor.elements.LinkedCheckbox.editor.linkText.predefinedDefaults' | ||
additionalLinks: { } | ||
# add new field which allows selection of a page (= link target) | ||
editors: | ||
200: | ||
templateName: 'Inspector-TextareaEditor' | ||
300: | ||
identifier: 'pageUid' | ||
templateName: 'Inspector-Typo3WinBrowserEditor' | ||
label: 'formEditor.elements.LinkedCheckbox.pageUid.label' | ||
buttonLabel: 'formEditor.elements.LinkedCheckbox.pageUid.buttonLabel' | ||
browsableType: pages | ||
iconIdentifier: apps-pagetree-page-default | ||
# very important setting -> defines the written form definition | ||
propertyPath: 'properties.pageUid' | ||
propertyValidatorsMode: 'OR' | ||
propertyValidators: | ||
10: 'Integer' | ||
20: 'FormElementIdentifierWithinCurlyBracesExclusive' | ||
400: | ||
identifier: 'linkText' | ||
templateName: 'Inspector-TextEditor' | ||
label: 'formEditor.elements.LinkedCheckbox.editor.label.linkText' | ||
propertyPath: 'properties.linkText' | ||
propertyValidators: | ||
10: 'NotEmpty' | ||
500: | ||
identifier: 'additionalLinks' | ||
templateName: 'Inspector-PropertyGridEditor' | ||
label: 'formEditor.elements.LinkedCheckbox.editor.additionalLinks.label' | ||
propertyPath: 'properties.additionalLinks' | ||
fieldExplanationText: 'formEditor.elements.LinkedCheckbox.editor.additionalLinks.fieldExplanationText' | ||
isSortable: true | ||
enableAddRow: true | ||
enableDeleteRow: true | ||
useLabelAsFallbackValue: false | ||
gridColumns: | ||
- name: label | ||
title: 'formEditor.elements.LinkedCheckbox.editor.additionalLinks.gridColumns.linkText.title' | ||
- name: value | ||
title: 'formEditor.elements.LinkedCheckbox.editor.additionalLinks.gridColumns.pageUid.title' | ||
LinkedCheckbox: | ||
# inherit configuration from checkbox element | ||
__inheritances: | ||
10: 'TYPO3.CMS.Form.prototypes.standard.formElementsDefinition.Checkbox' | ||
formEditor: | ||
label: 'Linked checkbox' | ||
groupSorting: 150 | ||
properties: | ||
pageUid: '' | ||
predefinedDefaults: | ||
properties: | ||
pageUid: '' | ||
linkText: 'formEditor.elements.LinkedCheckbox.editor.linkText.predefinedDefaults' | ||
additionalLinks: { } | ||
# add new field which allows selection of a page (= link target) | ||
editors: | ||
200: | ||
templateName: 'Inspector-TextareaEditor' | ||
300: | ||
identifier: 'pageUid' | ||
templateName: 'Inspector-Typo3WinBrowserEditor' | ||
label: 'formEditor.elements.LinkedCheckbox.pageUid.label' | ||
buttonLabel: 'formEditor.elements.LinkedCheckbox.pageUid.buttonLabel' | ||
browsableType: pages | ||
iconIdentifier: apps-pagetree-page-default | ||
# very important setting -> defines the written form definition | ||
propertyPath: 'properties.pageUid' | ||
propertyValidatorsMode: 'OR' | ||
propertyValidators: | ||
10: 'Integer' | ||
20: 'FormElementIdentifierWithinCurlyBracesExclusive' | ||
400: | ||
identifier: 'linkText' | ||
templateName: 'Inspector-TextEditor' | ||
label: 'formEditor.elements.LinkedCheckbox.editor.label.linkText' | ||
propertyPath: 'properties.linkText' | ||
propertyValidators: | ||
10: 'NotEmpty' | ||
500: | ||
identifier: 'additionalLinks' | ||
templateName: 'Inspector-PropertyGridEditor' | ||
label: 'formEditor.elements.LinkedCheckbox.editor.additionalLinks.label' | ||
propertyPath: 'properties.additionalLinks' | ||
fieldExplanationText: 'formEditor.elements.LinkedCheckbox.editor.additionalLinks.fieldExplanationText' | ||
isSortable: true | ||
enableAddRow: true | ||
enableDeleteRow: true | ||
useLabelAsFallbackValue: false | ||
gridColumns: | ||
- name: label | ||
title: 'formEditor.elements.LinkedCheckbox.editor.additionalLinks.gridColumns.linkText.title' | ||
- name: value | ||
title: 'formEditor.elements.LinkedCheckbox.editor.additionalLinks.gridColumns.pageUid.title' | ||
|
||
finishersDefinition: | ||
EmailToReceiver: | ||
options: | ||
templateRootPaths: | ||
1505042806: 'EXT:form_element_linked_checkbox/Resources/Private/Frontend/Templates/Finishers/Email/' | ||
EmailToSender: | ||
options: | ||
templateRootPaths: | ||
1505042806: 'EXT:form_element_linked_checkbox/Resources/Private/Frontend/Templates/Finishers/Email/' | ||
finishersDefinition: | ||
EmailToReceiver: | ||
options: | ||
templateRootPaths: | ||
1505042806: 'EXT:form_element_linked_checkbox/Resources/Private/Frontend/Templates/Finishers/Email/' | ||
EmailToSender: | ||
options: | ||
templateRootPaths: | ||
1505042806: 'EXT:form_element_linked_checkbox/Resources/Private/Frontend/Templates/Finishers/Email/' | ||
|
||
formEditor: | ||
translationFiles: | ||
1687159009: 'EXT:form_element_linked_checkbox/Resources/Private/Language/Database.xlf' | ||
dynamicRequireJsModules: | ||
additionalViewModelModules: | ||
1687159242: 'TYPO3/CMS/FormElementLinkedCheckbox/Backend/FormEditor/ViewModel' | ||
formEditorPartials: | ||
FormElement-LinkedCheckbox: 'Stage/SimpleTemplate' | ||
formEditor: | ||
translationFiles: | ||
1687159009: 'EXT:form_element_linked_checkbox/Resources/Private/Language/Database.xlf' | ||
dynamicJavaScriptModules: | ||
additionalViewModelModules: | ||
1505042806: '@tritum/form-element-linked-checkbox/backend/form-editor/view-model.js' | ||
formEditorPartials: | ||
FormElement-LinkedCheckbox: 'Stage/SimpleTemplate' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 0 additions & 81 deletions
81
Resources/Public/JavaScript/Backend/FormEditor/ViewModel.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.