lochmueller / calendarize-news
Add Event options to the news extension
Fund package maintenance!
lochmueller
paypal.me/lochmueller
Installs: 6 415
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 8
Open Issues: 1
Type:typo3-cms-extension
Requires
- php: ^7.4||^8.0||^8.1||^8.2
- georgringer/news: ^8.5||^9.0||^10.0||^11.0
- lochmueller/autoloader: ^7.0
- lochmueller/calendarize: ^10.0||^11.0||^12.0
- typo3/cms-core: ^10.4||^11.5
- typo3/cms-extbase: ^10.4||^11.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- namelesscoder/typo3-repository-client: 1.2.0
- phpmd/phpmd: ^2.4
- phpstan/phpstan: ^0.12.82
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^2.6
Replaces
- typo3-ter/calendarize-news: 7.1.0
README
Configuration
Please set the news default PID "plugin.tx_news.settings.defaultDetailPid" or set the Detail page ID in the calendarize Plugin configuration!
Routing configuration example
Based on this issue #30
NewsDetail:
type: Extbase
extension: News
plugin: Pi1
routes:
-
routePath: '/{news_title}'
_controller: 'News::detail'
_arguments:
news_title: news
-
routePath: '/{news_title}-{index}'
_controller: 'News::detail'
_arguments:
news_title: news
calendarize_index: index
defaultController: 'News::detail'
aspects:
news_title:
type: PersistedPatternMapper
tableName: tx_news_domain_model_news
routeFieldPattern: '^(?P<path_segment>.+)-(?P<uid>\d+)$'
routeFieldResult: '{path_segment}-{uid}'
calendarize_index:
type: PersistedAliasMapper
tableName: tx_calendarize_domain_model_index
routeFieldName: uid