web_layout

Configuration options of the "Web > Page" module.

allowInconsistentLanguageHandling

allowInconsistentLanguageHandling

allowInconsistentLanguageHandling
Type
boolean

By default, TYPO3 will not allow you to mix translated content and independent content in the page module. Content elements violating this behavior will be marked in the page module and there is no UI control (yet) allowing you to create independent content elements in a given language.

If you want to go back to the old, inconsistent behavior, you can toggle it back on using this switch.

Example: Allow inconsistent language modes

Allows to set TYPO3s page module back to inconsistent language mode

EXT:site_package/Configuration/page.tsconfig
mod.web_layout.allowInconsistentLanguageHandling = 1
Copied!

BackendLayouts

BackendLayouts

BackendLayouts
Type
array
no-index
1

Backend Layouts were initially introduced in order to customize the view of the Page module in TYPO3 Backend for a page, but has then since grown also in Frontend rendering to select for example Fluid template files via TypoScript for a page, commonly used via data:pagelayout.

See also the dedicated chapter Backend layouts.

Example: Define a backend layout

EXT:site_package/Configuration/page.tsconfig
mod.web_layout.BackendLayouts {
    exampleKey {
        title = Example
        icon = EXT:example_extension/Resources/Public/Images/BackendLayouts/default.gif
        config {
            backend_layout {
                colCount = 1
                rowCount = 2
                rows {
                    1 {
                        columns {
                            1 {
                                name = LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:colPos.I.3
                                colPos = 3
                                colspan = 1
                            }
                        }
                    }
                    2 {
                        columns {
                            1 {
                                name = Main
                                colPos = 0
                                colspan = 1
                                identifier = main
                            }
                        }
                    }
                }
            }
        }
    }
}
Copied!

defaultLanguageLabel

defaultLanguageLabel

defaultLanguageLabel
Type
string

Alternate label for "Default" when language labels are shown in the interface.

Overrides the same property from mod.SHARED if set.

defLangBinding

defLangBinding

defLangBinding
Type
boolean
Default
0

If set, translations of content elements are bound to the default record in the display. This means that within each column with content elements any translation found for exactly the shown default content element will be shown in the language column next to.

This display mode should be used depending on how the frontend is configured to display localization. The frontend must display localized pages by selecting the default content elements and for each one overlay with a possible translation if found.

hideRestrictedCols

hideRestrictedCols

hideRestrictedCols
Type
boolean
Default
false

If activated, only columns will be shown in the backend that the editor is allowed to access. All columns with access restriction are hidden in that case.

By default columns with restricted access are rendered with a message telling that the user doesn't have access. This may be useless and distracting or look repelling. Instead, all columns an editor doesn't have access to can be hidden:

EXT:site_package/Configuration/page.tsconfig
mod.web_layout.hideRestrictedCols = 1
Copied!

localization.enableCopy

localization.enableCopy

localization.enableCopy
Type
boolean
Default
1

Enables the creation of copies of content elements into languages in the translation wizard ("free mode").

Example: Disable free mode button for localization

EXT:site_package/Configuration/page.tsconfig
mod.web_layout {
    localization.enableCopy = 0
}
Copied!

localization.enableTranslate

localization.enableTranslate

localization.enableTranslate
Type
boolean
Default
1

Enables simple translations of content elements in the translation wizard ("connected mode").

Example: Disable "connected mode" button for translation

EXT:site_package/Configuration/page.tsconfig
mod.web_layout {
    localization.enableTranslate = 0
}
Copied!

tt_content.preview

tt_content.preview

tt_content.preview
Type
boolean

It is possible to render previews of your own content elements in the page module. By referencing a Fluid template you can create a visual representation of your content element, making it easier for an editor to understand what is going on on the page.

The syntax is as follows:

EXT:site_package/Configuration/page.tsconfig
mod.web_layout.tt_content.preview.[CTYPE].[list_type value] = EXT:site_mysite/Resources/Private/Templates/Preview/ExamplePlugin.html
Copied!

This way you can even switch between previews for your plugins by supplying list as CType.

Example: Define previews for custom content elements

EXT:site_package/Configuration/page.tsconfig
mod.web_layout.tt_content {
    preview.custom_ce = EXT:site_mysite/Resources/Private/Templates/Preview/CustomCe.html
    preview.table = EXT:site_mysite/Resources/Private/Templates/Preview/Table.html
    preview.list.tx_news = EXT:site_mysite/Resources/Private/Templates/Preview/TxNews.html
}
Copied!