Show additional author information on a reader page
composer require xirdion/contao-author-bundle
- 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.
- native Contao image support
- schema.org author tags
- author data also added to the news-template-object
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);