Skip to content

Commit

Permalink
Set frontend editing to be activated as default for T3kit installatio…
Browse files Browse the repository at this point in the history
…ns (#328)

[!!!][TASK] Set frontend editing to be activated as default for T3kit installations
  • Loading branch information
MattiasNilsson authored Oct 31, 2017
1 parent 53c573b commit 1513a8d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Configuration/TypoScript/setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,10 @@
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:theme_t3kit/Configuration/TypoScript/Library/plugin.rx_shariff.setupts">
[global]

# Frontend editing
[userFunc = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('frontend_editing')]
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:theme_t3kit/Resources/Private/Extensions/FrontendEditing/TypoScript/setup.ts">
[global]

# Include setupTS files from fileadmin/Configuration/TypoScript
<INCLUDE_TYPOSCRIPT: source="DIR:fileadmin/Configuration/TypoScript/" extensions="setupts">
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
config.frontend_editing = 1
2 changes: 2 additions & 0 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_tt_content.xml'
);

// Add default state for frontend editing to be enabled for all backend users
$GLOBALS['TYPO3_USER_SETTINGS']['columns']['frontend_editing']['default'] = 1;
}
};

Expand Down

0 comments on commit 1513a8d

Please sign in to comment.