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

Installs: 1 497

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 5

Forks: 1

Type:contao-bundle

3.0.0 2024-04-05 03:38 UTC

This package is auto-updated.

Last update: 2024-04-05 03:46:46 UTC


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);

Back end view

User

Module configuration

Module

Front end view (example)

Front end