Configure extension

Configure the mosparo Form via site set settings (TYPO3 v13 and above)

You can configure projects and validation settings through the Site settings editor in the TYPO3 backend.

  1. Got to module Site Management > Settings and edit your site configuration.
  2. Under the category "mosparo Form" you can than enter your project configuration.
Site settings for mosparo forms

Environment variables in site settings

Site settings are defined in config/sites/my-site/settings.yaml, where environment variables can be used to provide the mosparo configuration.

config/sites/my-site/settings.yaml (diff)
 plugin:
   tx_mosparoform:
     settings:
       projects:
         default:
+          publicServer: '%env(MOSPARO_FORM_DEFAULT_PUBLIC_SERVER)%'
+          verifyServer: '%env(MOSPARO_FORM_DEFAULT_VERIFY_SERVER)%'
+          uuid: '%env(MOSPARO_FORM_DEFAULT_UUID)%'
+          publicKey: '%env(MOSPARO_FORM_DEFAULT_PUBLIC_KEY)%'
+          privateKey: '%env(MOSPARO_FORM_DEFAULT_PRIVATE_KEY)%'
Copied!

Site set settings to configure the extension

mosparoForm

mosparoForm
Label
Mosparo form

mosparoForm.general

mosparoForm.general
Label
General

plugin.tx_mosparoform.settings.defaultProject

plugin.tx_mosparoform.settings.defaultProject
Type
string
Default
"default"
Label
Default project
Category
Mosparo form > General

Default mosparo project configuration that is used.

mosparoForm.projects

mosparoForm.projects
Label
Projects

mosparoForm.projects.default

mosparoForm.projects.default
Label
Default

plugin.tx_mosparoform.settings.projects.default.publicServer

plugin.tx_mosparoform.settings.projects.default.publicServer
Type
string
Label
Public server
Category
Mosparo form > Projects > Default

Host of your mosparo installation, which is used in the frontend

plugin.tx_mosparoform.settings.projects.default.verifyServer

plugin.tx_mosparoform.settings.projects.default.verifyServer
Type
string
Label
Verify Server
Category
Mosparo form > Projects > Default

Host of your mosparo installation, which is used at the backend verification

plugin.tx_mosparoform.settings.projects.default.uuid

plugin.tx_mosparoform.settings.projects.default.uuid
Type
string
Label
UUID
Category
Mosparo form > Projects > Default

Unique identification number of the project in mosparo

plugin.tx_mosparoform.settings.projects.default.publicKey

plugin.tx_mosparoform.settings.projects.default.publicKey
Type
string
Label
Public key
Category
Mosparo form > Projects > Default

Public key of the project in mosparo

plugin.tx_mosparoform.settings.projects.default.privateKey

plugin.tx_mosparoform.settings.projects.default.privateKey
Type
string
Label
Private key
Category
Mosparo form > Projects > Default

Private key of the project in mosparo

Configure the mosparo Form via TypoScript (TypoScript File)

You can add the settings over a TypoScript file like this:

EXT:site_package/Configuration/TypoScript/constants.typoscript
plugin.tx_mosparoform.settings {
    defaultProject=<Default mosparo project configuration that is used>

    projects {
        default {
            publicServer=<Host of your mosparo installation, which is used in the frontend>
            verifyServer=<Host of your mosparo installation, which is used at the backend verification>
            uuid=<Unique identification number of the project in mosparo>
            publicKey=<Public key of the project in mosparo>
            privateKey=<Private key of the project in mosparo>
        }
    }
}
Copied!

Configure the mosparo Form via TypoScript (Constants Editor)

The settings for the projects and validation themselves can be set via the Submodule "Constant Editor".

  1. This can be opened under the Sites > TypoScript module using the Constant Editor.
  2. You only have to select the entry “mosparo form” under Selected category in the editor.