承接 bright-cloud-studio/add-user-fields 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

bright-cloud-studio/add-user-fields

Composer 安装命令:

composer require bright-cloud-studio/add-user-fields

包简介

Adds two custom user fields, image and bio, so they can be displayed on News posts and elsewhere

README 文档

README

Adds two custom user fields, "User Image" and "User Bio", which can be added to templates using custom tags. Add into news templates with a dynamic id to display an author's image and bio on posts or put in a static id to display a specific user's image and/or bio anywhere you'd like.

  • On the "Edit User" page is a new section containing our two custom fields.

Example Image 1

  • On any template, for this example I'm using "news_full.html5", add the custom tags "{{user_image::id}}" and "{{user_bio::id}}" to display them, making sure to replace id with the User's id.

Example Image 2

For this example we wanted to add an author's image and bio to news posts so $author_id is obtained using \NewsModel::findByAlias but you can use them anywhere as long as you add a valid user id

  • Can be styled using the "user_image" and "user_bio" class and id.

Requirements

  • PHP 8.1 or higher
  • Contao 5.0 or higher

Installation

  1. Extract this bundle into vendor/bright-cloud-studio/add-user-fields.
  2. Run composer dump-autoload.
  3. Clear Contao cache.
  4. Use insert tags {{user_image::USER_ID}} and {{user_bio::USER_ID}} to display fields.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2021-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固