Disable FluidTYPO3 Page Template and / or Page Content

I have a multi-user installation of TYPO3 CMS, where each X-page tree has its own page template and content elements created using FluidTYPO3.

Currently, the backend user sees all the templates and elements provided by various provider extensions. The question arises: is it possible to disable page templates and content elements using certain user conditions (fx, if we are on a subpage on page Y, we only display page template A and content elements B, D and F?

Marcus

+4
source share
3 answers

, TS .

. :

your_ext/Configuration/TypoScript/Set1/setup.txt:

plugin.tx_yourext.view {
    templateRootPath = EXT:your_ext/Resources/Private/Set1/Templates/
    partialRootPath = EXT:your_ext/Resources/Private/Set1/Partials/
    layoutRootPath = EXT:your_ext/Resources/Private/Set1/Layouts/
}

your_ext/Configuration/TypoScript/Set2/setup.txt:

plugin.tx_yourext.view {
    templateRootPath = EXT:your_ext/Resources/Private/Set2/Templates/
    partialRootPath = EXT:your_ext/Resources/Private/Set2/Partials/
    layoutRootPath = EXT:your_ext/Resources/Private/Set2/Layouts/
}

your_ext/ext_tables.php

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Set1', 'Templates Set1');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Set2', 'Templates Set2');

, TS . . :

root
 |
 |- Home1 (TS Template)
 |   |
 |   |- Page 1
 |   |- Page 2
 |- Home2 (TS Template)
     |
     |- Page 1
     |- Page 2

" Set1" "Home1" TS, " Set2" TS "Home2".

: .

.

05.03.2015: CE - . , , :

# disable the "Alert" element:
plugin.tx_fluidbootstraptheme.forms.alert.enabled = 0
+2

, :

  • site1
    • Partials
  • site2
    • Partials

I :

plugin.tx_yourprovidername.settings.sitename = site1

:

<f:layout name="{settings.sitename}/nameoflayout"/>
0

. tsconfig , (a > > typoscript):

mod.wizards.newContentElement.wizardItems.common.show =

"" . ce , , . , ": = removeFromList (yourElement1,...)".

Keep in mind that this will only work for the new content wizard. When editing an element, you can still select any ce from the "Type of liquid content" drop-down list.

I'm still looking for ways to show and hide page templates and disable certain elements. I will try to update this answer as soon as I find something :)

Greetings ...

0
source

All Articles