tripalcultivate/trpcultivatetheme
Composer 安装命令:
composer require tripalcultivate/trpcultivatetheme
包简介
Tripal Cultivate Theme provides default styling for the Drupal websites using the Tripal Cultivate family of packages.
README 文档
README
This theme is intended to provide a base for developing custom themes for project-specific or research group specific Tripal sites using the Tripal Cultivate package of modules. We request that you do not use this theme untouched but rather as a base to develop a custom look for your project or group. At a minimum you need to choose a unique colour for your site, a logo and a header image.
Installation
First install the theme via composer:
composer require tripalcultivate/trpcultivatetheme
Then, symlink the module portion of the theme into the modules directory:
cd web/modules/contrib
ln -s [pathToDrupalRoot]/themes/TripalCultivate-Theme/trpcultivatetheme_companion
Now you can enable first the module and then the theme.
Customizing this theme
You can set the primary base colour using the following drush command where you substitute #f54278 for whatever hex code you would like to use.
drush config:set trpcultivatetheme.settings base_primary_color '#f54278'
Development
Docker
As you may have noticed there is a dockerfile in this repository. The recommended way to contribute to this theme is the same as the recommendation for core development: use docker please :-)
git clone https://github.com/TripalCultivate/TripalCultivate-Theme trpcultivatetheme cd trpcultivatetheme docker build --build-arg drupalversion=10.2.x-dev --build-arg phpversion=8.3 --tag=trpcultivate-theme:4x ./ docker run --publish=80:80 -tid --name=theme4x \ --volume=$(pwd)/trpcultivatetheme:/var/www/drupal/web/themes/trpcultivatetheme \ --volume=$(pwd)/trpcultivatetheme_companion:/var/www/drupal/web/modules/contrib/trpcultivatetheme_companion \ trpcultivate-theme:4x docker exec theme4x service postgresql restart
This docker image/container will have a fully functioning Tripal 4 site based on TripalDocker built using the specified version of Drupal and PHP. For more details about TripalDocker see the official docs.
Twig Debugging
The dockerfile sets up the development environment with twig debugging turned on. This adds template suggestions in HTML comments into each page and refreshes twig template caches as it detects changes in the files. You do still need to use drush cr to see CSS and template changes but it is much more reliable with this setting in place.
Olivero as a Base Theme
This theme uses the core Olivero theme as a base theme. As of 2024Feb this is not technically recommended as the markup of Olivero is not fixed. You can see the current status / recommendation on using Oliverio as a subtheme in Drupal Issue #3190946 - [META] Subtheming Olivero.
As you can see in comment #19 of that issue, we've decided to use Olivero as a base theme despite the recommendation not to. This is because we believe that the effort to update this theme with any markup changes in Olivero is likely less work then the other options we considered. If we had copied Oliverio and renamed it for our own purposes as suggested, then it would have been a lot of work to re-incorporate any updates/fixes made to Olivero in core. This is because with the names of all the files changed, we could not do a direct comparison of files or git merge. The theme landscape at the beginning of 2024 is still very sparse for good Drupal themes so we couldn't just use a more stable theme as a base. There are a number of Bootstrap base themes available but the community has fractured quite a bit causing it to be confusing to know which one to use for long term sustainability. Furthermore, we did not like the base themeing provided by these base themes.
tripalcultivate/trpcultivatetheme 适用场景与选型建议
tripalcultivate/trpcultivatetheme 是一款 基于 Twig 开发的 Composer 扩展包,目前已累计 87 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 03 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「theme」 「drupal」 「tripal」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tripalcultivate/trpcultivatetheme 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tripalcultivate/trpcultivatetheme 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tripalcultivate/trpcultivatetheme 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Provides an add-on purchasable entity.
Tripal is a toolkit to facilitate construction of online genomic, genetic (and other biological) websites.
Drupal integration module for the Kalastatic prototyping and styleguide tool
Provides a base set of configuration and module dependencies for starting new Drupal projects.
This module extends Drupal Migrate framework.
A Bootstrap 4.x base theme for SilverStripe
统计信息
- 总下载量: 87
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-03-27