dreibein/contao-author-bundle

This package is abandoned and no longer maintained. The author suggests using the sowieso/contao-author-bundle package instead.

Show additional author information on a reader page

2.0.1 2022-04-06 12:14 UTC

This package is auto-updated.

Last update: 2022-04-06 12:14:41 UTC


README

Show additional author information on a reader page

Installation

composer require sowieso/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);

Back end view

User

Module configuration

Module

Front end view (example)

Front end