General configuration¶
The general configuration covers options available during the creation and editing of news records.
Properties
templateLayouts¶
-
templateLayouts
¶ Type: array Path: tx_news The select box Template Layout inside a plugin can be extended by using TSconfig. Contains an array with key-value pairs. It is possible to define Groups using the
--div--
keyword.- allowedColPos
- Limit a layout to a list of colPos values.
Examples: Add template layouts¶
Show 3 layout options with the specified key / value pairs.
tx_news.templateLayouts {
1 = Foobar
2 = Another one
3 = --div--,Group 2
4 = Blub
}
You can use this setting within the Fluid template by checking
{settings.templateLayout}
. See a complete example:
Template selector tutorial.
By using the configuration allowedColPos
it is possible to restrict a
template layout to a specific list of colPos values.
tx_news.templateLayouts {
1 = Foobar
2 = Another one
2.allowedColPos = 1,2,3
3 = --div--,Group 2
4 = Blub
4.allowedColPos = 0,1
}
archive¶
-
archive
¶ Type: string Path: tx_news Use strtotime (see http://www.php.net/strtotime ) to predefine the archive date
Example: Set the archive date¶
Set the archive date on the the next friday:
# Example:
tx_news.predefine.archive = next friday
tagPid¶
-
tagPid
¶ Type: integer Path: tx_news Besides the configuration in the Extension Configuration it is also possible to define the pid of tags created directly in the news record by using TSconfig:
categoryRestrictionForFlexForms¶
-
categoryRestrictionForFlexForms
¶ Type: bool Path: tx_news After defining the category restriction in the Extension Configuration it is also possible to restrict the categories in the news plugin. This needs to enabled by TsConfig:
# Example: tx_news.categoryRestrictionForFlexForms = 1
showContentElementsInNewsSysFolder¶
-
showContentElementsInNewsSysFolder
¶ Type: bool Path: tx_news
If a sys folder is configured with Contains Plugin: News, content elements are hidden on those pages in the page and list module. If the content elements should be shown, use the Page TsConfig.
# Example:
tx_news.showContentElementsInNewsSysFolder = 1