All Projects → sebkln → form_examples

sebkln / form_examples

Licence: GPL-2.0 license
TYPO3 extension. Ships several examples for the TYPO3 Form Framework, e.g. an upload form or a custom email template with personalized salutation. Includes translation examples (both global and specific).

Programming Languages

HTML
75241 projects
PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to form examples

urlguard
TYPO3 extension urlguard. Allows to define what query parameters will be passed to newly created typolinks.
Stars: ✭ 16 (-46.67%)
Mutual labels:  typo3, typo3-extension
content defender
Define allowed or denied content element types in your backend layouts
Stars: ✭ 63 (+110%)
Mutual labels:  typo3, typo3-extension
luxletter
Newsletter system for TYPO3
Stars: ✭ 18 (-40%)
Mutual labels:  typo3, typo3-extension
schema
TYPO3 extension providing an API and view helpers for schema.org markup
Stars: ✭ 19 (-36.67%)
Mutual labels:  typo3, typo3-extension
typo3-secure-downloads
Secure your assets and data from unwanted download. Apply TYPO3 access rights to ALL file assets (PDFs, TGZs or JPGs etc. - configurable) - protect them from direct access.
Stars: ✭ 15 (-50%)
Mutual labels:  typo3, typo3-extension
aus driver amazon s3
Provides a TYPO3 FAL driver for the Amazon Web Service S3
Stars: ✭ 15 (-50%)
Mutual labels:  typo3, typo3-extension
mask export
Export your mask elements as extension
Stars: ✭ 45 (+50%)
Mutual labels:  typo3, typo3-extension
randomdata
TYPO3 extensions to generate new random data or replace existing data with random data
Stars: ✭ 14 (-53.33%)
Mutual labels:  typo3, typo3-extension
backend debug
Debug support in TYPO3 backend
Stars: ✭ 20 (-33.33%)
Mutual labels:  typo3, typo3-extension
autoswitchtolistview
Auto switch to list view when a sysfolder is shown
Stars: ✭ 14 (-53.33%)
Mutual labels:  typo3, typo3-extension
typo3v10 example sitepackage
Site package extension for TYPO3 10 feature demonstration
Stars: ✭ 13 (-56.67%)
Mutual labels:  typo3, typo3-extension
t3x-rte ckeditor image
Image support in CKEditor for the TYPO3 ecosystem
Stars: ✭ 43 (+43.33%)
Mutual labels:  typo3, typo3-extension
restrictfe
TYPO3 extension restrictfe. Blocks access to frontend and allows to show it only to some defined exception's like if the request is from an authorized backend user, has specific IP, header etc.
Stars: ✭ 12 (-60%)
Mutual labels:  typo3, typo3-extension
autoloader
⚙️ Best TYPO3 Swiss Army knife ever ⚙️
Stars: ✭ 22 (-26.67%)
Mutual labels:  typo3, typo3-extension
TYPO3 Restler
restler (PHP REST-Framework) for TYPO3
Stars: ✭ 29 (-3.33%)
Mutual labels:  typo3, typo3-extension
fluid-components
Encapsulated frontend components with Fluid's ViewHelper syntax for TYPO3
Stars: ✭ 41 (+36.67%)
Mutual labels:  typo3, typo3-extension
in2publish core
in2publish Community Version
Stars: ✭ 38 (+26.67%)
Mutual labels:  typo3, typo3-extension
weaviate-examples
Weaviate vector search engine – examples
Stars: ✭ 79 (+163.33%)
Mutual labels:  examples
terraform-openstack
Create multiple instances with floating ip assigning on openstack using terraform.
Stars: ✭ 33 (+10%)
Mutual labels:  examples
kubernetes-examples
A bunch of examples of how to deploy things on kubernetes
Stars: ✭ 34 (+13.33%)
Mutual labels:  examples

Examples of using the TYPO3 Form Framework

This TYPO3 extension ships some examples for the TYPO3 Form Framework.

Since some configurations have changed between TYPO3 versions, you can choose the compatible version of this extension here:

To work out-of–the-box, this extension also comes with the necessary YAML and TypoScript setup, as well as an example database to save sent form values.

As this collection of examples might get bloated, you can get a minimal starter kit to store the actually needed forms for your project here: https://github.com/sebkln/form_distribution

Example form definitions:

Basic contact form

  • EmailToReceiver finisher
  • Confirmation finisher
  • SaveToDatabase finisher

Extended contact form

  • multiple pages with fieldsets
  • every field that is available as a database field, too
  • field for file upload
  • SaveToDatabase finisher, correctly referring to the sys_file entry (for the uploaded file) with sys_file_reference

Upload form

  • SaveToDatabase finisher, works the same as above

Customized FluidEmail templates

  • This example demonstrates how to override Fluid templates and layouts for emails.
  • Two custom HTML mail templates, both using the Fluid-based email templating of the TYPO3 core (available since 10.3):
    1. Email template with name identical to TYPO3 core, which makes it the new default mail template.
    2. Email template with custom name, that can be assigned to a specific mail finisher in a form definition.
  • Personalized salutation in email, depending on the selected title in the form.
  • For all newly added email finishers, FluidEmail ist enabled by default.

Translating forms

This extension provides some localization files to demonstrates how translating forms (labels, placeholders, finishers, ...) work.

Any element label which was set directly in a form definition will be overridden, if a translation file contains a value for this element. This allows you to translate the same form to different languages.

The EXT:form Framework further supports a fallback chain for translations. You can translate properties for:

  • a specific form and form element
  • a specific form element and various forms
  • an element type and various forms, e.g. the Page element

You can read the full details here: https://docs.typo3.org/c/typo3/cms-form/master/en-us/I/Concepts/FrontendRendering/Index.html#concepts-frontendrendering-translation

In this example extension, I split the translations in several files:

  • locallang_forms_general.xlf contains translations for all forms in general.
  • locallang_forms_specific.xlf contains values for single forms, which override the translations in the first file.
  • locallang_forms_custom.xlf contains translated values for individual purposes in forms, e.g. localized salutation in the sent email.

Please note that the fallback chain does not require to split translations in separate files! This is just a possible way to organize them. Learn all about the fallback order in the link above.

To use your translation files, you must load them in your custom form setup first (as done in this extension):

TYPO3:
  CMS:
    Form:
      prototypes:
        standard:
          formElementsDefinition:
            Form:
              renderingOptions:
                translation:
                  translationFiles:
                    # index '10' is reserved for the default translation file.
                    20: 'EXT:form_examples/Resources/Private/Language/locallang_forms_general.xlf'
                    30: 'EXT:form_examples/Resources/Private/Language/locallang_forms_specific.xlf'
                    40: 'EXT:form_examples/Resources/Private/Language/locallang_forms_custom.xlf'

Related tutorials

Do you need to get one step explained in detail? You can find a series of tutorials on the TYPO3 Form Framework here:

  1. Assign custom templates to the new EXT:form framework
  2. Different e-mail templates for EmailToSender and EmailToReceiver finishers in EXT:form
  3. Translating forms in the TYPO3 Form Framework

All tutorials are available in both english and german language.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].