# TYPO3 Extension `news_content_elements`

Faster and easier way to maintain content elements of a news article by using the page module.

## Requirements

- TYPO3 12 & 13: Use version 2.0.0+ in combination with EXT:news 11/12
- TYPO3 11 & 12: Use version 1.2.0 in combination with EXT:news 10/11

## Usage

After installation, please check that the field "Contains Plugin" of the sysfolder containing the news records is set to "News"!

## Screenshots

![](Resources/Public/Screenshots/news-with-content-elements.png)

Switch to the page module with a new button

![](Resources/Public/Screenshots/news-with-content-elements-edit.png)

Content elements of selected page

## Installation

Install the extension by using `composer req georgringer/news-content-elements`.

## Best practices

### Reset backend Layout in news context

If you want to reset the backend layout configuration in the page module of the news content editing context and use the default column layout instead (only display colPos '0'), add the following TSconfig:

```
[traverse(page, "doktype") == 254 && traverse(page, "module") == 'news' && request && traverse(request.getQueryParams(), 'tx_news_id') > 0]
  mod.web_layout.BackendLayouts >
[end]
```

## Possible todos

- check if page module is allowed for user
- translation
  - language selection must remember news
- tests
- tca override type + label
