dreibein / contao-author-bundle
Show additional author information on a reader page
Installs: 1 497
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 1
Type:contao-bundle
Requires
- php: ^8.0
- ext-json: *
- contao/calendar-bundle: ^4.13 || ^5.0
- contao/core-bundle: ^4.13 || ^5.0
- contao/faq-bundle: ^4.13 || ^5.0
- contao/news-bundle: ^4.13 || ^5.0
- menatwork/contao-multicolumnwizard-bundle: ^3.5
Requires (Dev)
- contao/manager-plugin: ^2.0
- contao/test-case: ^4.4
- friendsofphp/php-cs-fixer: ^3.0
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
Show additional author information on a reader page
Installation
composer require xirdion/contao-author-bundle
Usage
- Create a user
- Add author data to the user (description, image etc.)
- Create a frontend module "author" and set the scope (News, Events, FAQ)
- Insert the module on a reader page (e.g. above a news-reader-module)
- For news entries there is the possibility to show the author within the news-template. For this case you have to provide the image-size for the author image.
Features
- native Contao image support
- schema.org author tags
- author data also added to the news-template-object
News Template
The author data is added to the new template. Following properties are available in the template:
$this->authorUser
(instance of Contao\UserModel)$this->authorLinks
(array of links)$this->authorImage
(image object)
The image object could be used this way:
$this->insert('picture_default', $this->authorImage->picture);