Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smichaelsen/typo3-settings
https://github.com/smichaelsen/typo3-settings
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/smichaelsen/typo3-settings
- Owner: smichaelsen
- Created: 2016-07-26T12:47:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-15T12:46:30.000Z (over 7 years ago)
- Last Synced: 2024-04-24T03:14:56.577Z (8 months ago)
- Language: PHP
- Size: 238 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# settings - TYPO3 Extension
[![Build Status](https://travis-ci.org/smichaelsen/typo3-settings.svg?branch=master)](https://travis-ci.org/smichaelsen/typo3-settings)
Because you haven't enough places in TYPO3 to configure stuff, right?
## What it does
settings offers a new backend module in which extensions can offer configuration options. Why?
Ever since I was missing a spot where editors (non-admins) can do global configuration.
![Screenshot](Documentation/Images/Screenshot_Overview.png?raw=true "Screenshot")## How to use
### Define fields:
Define your fields in TCA syntax and add it to the table `tx_settings_form`.
Example (in `Configuration/TCA/Overrides/tx_settings_form.php`):[
'label' => 'My field',
'config' => [
'type' => 'input',
],
],
]
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'tx_settings_form',
'tx_myext_myfield'
);
### Read configuration#### 1. TypoScript ###
All configured values are available as TypoScript constants in `plugin.tx_settings`.
### 2. Fluid ViewHelper ###
{namespace s=Smichaelsen\Settings\ViewHelpers}
{s:getValue(name:'tx_myext_myfield')} or
and to load FAL resources:
### 3. PHP ###
You can also access the values via PHP:
$configurationService = GeneralUtility::makeInstance(\Smichaelsen\Settings\Service\ConfigurationService::class);
$allConfiguration = $configurationService->getAllConfiguration($GLOBALS['TSFE']->rootLine[0]['uid']);## Known issues
Inline fields do not work yet, that includes FAL file upload fields.