Zum Inhalt springen

3 kurze Fragen zu TYPO3 8.7.0 und sysext: tx_form

Erstellt am 22. April 2017 · 8 Antworten · letzte Antwort am 19. September 2017

Tags: Fluid, TYPO3 8, Frage

thowe ·

Hallo

Wie der Titel schon verrät geht es um:

TYPO3 8.7.0 (ich weiß Version 8.7.1 wurde veröffentlicht...)

- Frage 1: eigene Templates/Partials in fileadmin -> wie überschreiben/definieren?

In der sysext tx_form findet man unter: /typo3_src-8.7.0/typo3/sysext/form/ext_typoscript_setup.txt

module.tx_form {
    settings {
           ....        
    }
    view {
        templateRootPaths.10 = EXT:form/Resources/Private/Backend/Templates/
        partialRootPaths.10 = EXT:form/Resources/Private/Backend/Partials/
        layoutRootPaths.10 = EXT:form/Resources/Private/Backend/Layouts/
    }
}

und unter: /typo3_src-8.7.0/typo3/sysext/form/Configuration/TypoScript/setup.txt

plugin.tx_form {
    view {
        # Note that this configuration only affects the EXT:Form plugin
        # template (form/Resources/Private/Frontend/Templates/Render.html)
        # The fluid paths for the formelements reside within the yaml settings.
        # @see TYPO3.CMS.Form.<prototypeName>.standard.formElementsDefinition.Form.renderingOptions
        #
        # That means: If you want to override the formelement templates
        # then change them within the yaml settings, not here.
        templateRootPaths.0 = EXT:form/Resources/Private/Frontend/Templates/
        partialRootPaths.0 = EXT:form/Resources/Private/Frontend/Partials/
        layoutRootPaths.0 = EXT:form/Resources/Private/Frontend/Layouts/
    }

- Frage 2: _LOCALE_LANG.de (de.locallang.xlf) überschreiben?

wenn "config.language = de" gesetzt, dann findet man unter: /byd/typo3conf/l10n/de/form/Resources/Private/Language die Datei: de.locallang.xlf

folgender Code greift nicht, wenn ich den Button "nextButtonLabel" überschreiben möchte

plugin.tx_form._LOCALE_LANG.de {
	element.Page.renderingOptions.nextButtonLabel = Weiter >>
}

Wer kann mir helfen, mit konkreten, Tipps, Anregungen und Hilfestellungen...

Danke im Voraus,
herzlich:

thowe ·

Hallo,

keiner eine Idee und bereit eine Hilfestellung mir zukommen zu lassen....?

Habe folgendes in meinem Seutp.txt

#plugin.tx_form Settings
plugin.tx_form.view.templateRootPaths.30 = fileadmin/system/Private/Template/tx_forms/
plugin.tx_form.view.partialRootPaths.30 = fileadmin/system/Private/Partial/tx_forms/
plugin.tx_form.view.layoutRootPaths.30 = fileadmin/system/Private/Layout/tx_forms/

#module.tx_form Settings
module.tx_form.view.templateRootPaths.30 = fileadmin/system/Private/Template/tx_forms/
module.tx_form.view.partialRootPaths.30 = fileadmin/system/Private/Partial/tx_forms/
module.tx_form.view.layoutRootPaths.30 = fileadmin/system/Private/Layout/tx_forms/

Habe die Dateien von den Layouts/Templates/Partials in oben genannte Ortdner kopiert. Habe Änderungen vorgenommen

Ergebnis. Es werden immer die Templates/Partials von der EXT genommen. WARUM?

Andere Frage, warum gibt es plugin.tx_form.view UND module.tx_form.view?

Leider gibt es vom Core-TEAM nach wie vor keine Dokumentation.

Ich bitte wirklich dringend um Hilfe! Danke

martinibianco007 ·

hatte dasselbe Problem, du musst die pfade in der .yaml datei vornehmen...

plugin.tx_form {
     view {
	  
         # Note that this configuration only affects the EXT:Form plugin
         # template (form/Resources/Private/Frontend/Templates/Render.html)
         # The fluid paths for the formelements reside within the yaml settings.
         # @see TYPO3.CMS.Form.<prototypeName>.standard.formElementsDefinition.Form.renderingOptions
         #
         # That means: If you want to override the formelement templates
         # then change them within the yaml settings, not here.
         templateRootPaths.0 = EXT:form/Resources/Private/Frontend/Templates/
         partialRootPaths.0 = EXT:form/Resources/Private/Frontend/Partials/
         layoutRootPaths.0 = EXT:form/Resources/Private/Frontend/Layouts/
     }
     mvc {
         callDefaultActionIfActionCantBeResolved = 1
     }
 
     settings {
         yamlConfigurations {
             10 = fileadmin/templates/form/Yaml/BaseSetup.yaml
             20 = EXT:form/Configuration/Yaml/FormEngineSetup.yaml
         }
     }
 }
martinibianco007 · · Beste Antwort

auszug aus der yaml datei:
....
### BASE ELEMENTS ###
Form:
__inheritances:
10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
rendererClassName: 'TYPO3\CMS\Form\Domain\Renderer\FluidFormRenderer'
renderingOptions:
__inheritances:
10: 'TYPO3.CMS.Form.mixins.translationSettingsMixin'
templateRootPaths:
10: 'fileadmin/templates/form/Templates/'
partialRootPaths:
10: 'fileadmin/templates/form/Partials/'
layoutRootPaths:
10: 'EXT:form/Resources/Private/Frontend/Layouts/'
addQueryString: false
argumentsToBeExcludedFromQueryString: []
additionalParams: []
controllerAction: perform
......

ich hätte auch eine frage zu der form extension:
werden die übermittelten formulare im backend nirgends gespeichert?
z.B. so wie bei powermail?

Norman2k ·
martinibianco007 schrieb

auszug aus der yaml datei:
ich hätte auch eine frage zu der form extension:
werden die übermittelten formulare im backend nirgends gespeichert?
z.B. so wie bei powermail?

Nein, werden nicht gespeichert

thowe ·

Hallo Martinibi
Hallo Norman2k

danke euch beiden für die Antworten. Das hat - wirklich - weitergeholfen.

Für mich beschämend: Ich habe den Hinweis von der sysext tx_form gelesen: Note that (...) -> Aber so wirklich glauben wollte ich es nicht, bzw. konnte ich nix damit anfangen...

Danke noch einmal

herzlich,

The_C ·
Norman2k schrieb
martinibianco007 schrieb

auszug aus der yaml datei:
ich hätte auch eine frage zu der form extension:
werden die übermittelten formulare im backend nirgends gespeichert?
z.B. so wie bei powermail?

Nein, werden nicht gespeichert

Mich würde es interessieren wie man die Daten in tt_address speichert