2017 © Pedro Peláez
 

typo3-cms-extension settings

User friendly configuration module for editors

image

smichaelsen/settings

User friendly configuration module for editors

  • Tuesday, August 15, 2017
  • by smichaelsen
  • Repository
  • 2 Watchers
  • 8 Stars
  • 204 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

settings - TYPO3 Extension

Build Status, (*1)

Because you haven't enough places in TYPO3 to configure stuff, right?, (*2)

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., (*3)

Screenshot, (*4)

How to use

Define fields:

Define your fields in TCA syntax and add it to the table tx_settings_form., (*5)

Example (in Configuration/TCA/Overrides/tx_settings_form.php):, (*6)

<?php
if (!defined('TYPO3_MODE')) {
    die ('Access denied.');
}

$GLOBALS['TCA']['tx_settings_form']['columns'] = array_merge(
    $GLOBALS['TCA']['tx_settings_form']['columns'],
    [
        'tx_myext_myfield' => [
            '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., (*7)

2. Fluid ViewHelper

{namespace s=Smichaelsen\Settings\ViewHelpers}
{s:getValue(name:'tx_myext_myfield')} or <s:getValue name="tx_myext_myfield"/>

and to load FAL resources:, (*8)

<s:loadFalResources field="tx_myext_logo" as="logos">
  <f:image image="{logos.0}"/>
</s:loadFalResources>

3. PHP

You can also access the values via PHP:, (*9)

$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., (*10)

The Versions

15/08 2017

dev-master

9999999-dev

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

15/08 2017

2.0.0

2.0.0.0

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

01/03 2017

1.0.2

1.0.2.0

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

01/03 2017

1.0.1

1.0.1.0

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

01/03 2017

1.0.0

1.0.0.0

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

20/02 2017

0.2.0

0.2.0.0

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires

 

14/12 2016

0.1.4

0.1.4.0

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires

 

28/11 2016

0.1.3

0.1.3.0

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires

 

25/11 2016

0.1.2

0.1.2.0

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires

 

25/11 2016

0.1.1

0.1.1.0

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires

 

27/07 2016

0.1.0

0.1.0.0

User friendly configuration module for editors

  Sources   Download

GPL-2.0+

The Requires