xirdion/contao-author-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xirdion/contao-author-bundle

最新稳定版本:3.0.0

Composer 安装命令:

composer require xirdion/contao-author-bundle

包简介

Show additional author information on a reader page

README 文档

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

统计信息

  • 总下载量: 1.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2022-11-07