j4wx/theme_picker 问题修复 & 功能扩展

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

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

j4wx/theme_picker

Composer 安装命令:

composer require j4wx/theme_picker

包简介

Advanced theme selection/negotiation for Drupal 8

README 文档

README

Using Fields for Theme Selection in Drupal 8

This module performs theme negotiation using fields. A content type can have it's theme set in one of three ways (ordered by descending priority):

  • Through a "Theme" field, with the machine name "field_theme_selection".
  • Through an entity reference field, with the machine name "field_parent_theme".
  • Through an entity reference field, with the machine name "field_parent".

If either of the entity reference fields are chosen, the referred entity can have it's theme set using either of those methods. This means the following is possible:

Category Page (With field_theme_selection), Subcategory page (with field_parent or field_parent_theme), Content page (with field_parent or field_parent_theme).

Changing the category page's field_theme_selection would change update itself, the subcategory page and the content page. This can be theoretically looped infinitely, but each of the nodes traversed is accessed independently so this could be a costly process with several traversed nodes.

Plans

  • Initial Version
  • Use paned settings (like drupal/metatags)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固