Skip to content

Xirdion/contao-author-bundle

Repository files navigation

Contao Author Bundle

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

About

Show additional author information on a reader page

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages