Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-news-relocate-bundle
This contao extension allows to relocate news articles, e.g. set a replacement article and force a redirect or pagerank transmission.
https://github.com/heimrichhannot/contao-news-relocate-bundle
Last synced: about 1 month ago
JSON representation
This contao extension allows to relocate news articles, e.g. set a replacement article and force a redirect or pagerank transmission.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-news-relocate-bundle
- Owner: heimrichhannot
- License: lgpl-3.0
- Created: 2024-05-29T09:22:39.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-30T06:59:35.000Z (7 months ago)
- Last Synced: 2024-11-06T23:18:14.701Z (about 2 months ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Contao News Relocate Bundle
This contao extension allows to relocate news articles, e.g. set a replacement article and force a redirect or pagerank transmission.
## Install
Install with contao manager or with composer:
```bash
composer require heimrichhannot/contao-news-relocate-bundle
```Update the database.
## Usage
Go to the news article you want to relocate, select the relocate type and provide the relocate url.
Relocate Type
Description
deindex
The article will not be available anymore and calling the url will redirect to the provided relocate url.
The article will not be indexed by the search indexer and will be removed from the sitemap.
The pagerank of the article get lost.
redirect
The article is still available, but it's canonical url is set to the relocate url, this should transfer the pagerank to the relocate url.
## Developers
Following events are available:
| Name | Description |
|-------------------------|-------------------------------------------------------------------------------------------------------------|
| GenerateArticleUrlEvent | Dispatched before the article url is searched in the sitemap url list to be removed. Allows modify the url. |## Footnote
Relocated news are currently not removed from news lists as the hooks to do such things are very limited.
You can filter them in your count and fetch items hook by adding `"tl_news.relocate = 'none'"` to the model columns array.