cubear/cwd_base
Composer 安装命令:
composer require cubear/cwd_base
包简介
A lightweight Drupal 8 theme, implementing Cornell Branding and standard CWD components; from Cornell University CIT-CD.
README 文档
README
cwd_base
Included with https://github.com/CU-CommunityApps/CD-demo ...along with https://github.com/CU-CommunityApps/cwd_project
See also: https://github.com/CU-CommunityApps/cwd_framework
See also: SASS instructions over here: https://github.com/CU-CommunityApps/cwd_base_bootstrap
NOTE: When using with a site created from CD Demo, it's recommended to change the version constraint to exact version you're using when you get to site launch (or during development, if you prefer), so that the base theme doesn't get automatically updated with other packages. (You can always update it "manually" by increasing the version constraint when you wish.)
Misc notes (to organize "later")
Template overrides hint:
Original/Source templates have all sorts of variable info and other details. For example, let's say you have a template called field--field-slider-media.html.twig -- that's a template specifically for field_slider_media. If you want to find the original/source template that's being overridden by this template, look in the template docblock for notes like:
override field.html.twig
and/or
@see field.html.twig
^^ So, look for a template called field.html.twig to find out about variables and other details available to you in this specific field template.
Where to look? Surprise: It depends! Some places to look: core/themes/stable/templates, core/modules/MODULENAME/templates, modules/contrib/MODULENAME/templates
If the template you're looking at doesn't have the aforementioned notes (or a docblock at all), it's trickier to figure out. If you're in a dev environment with twig_debug enabled, you may find some clues in by viewing the page source -- look for HTML comments like this:
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'field' -->
<!-- FILE NAME SUGGESTIONS:
* field--node--title--page.html.twig
x field--node--title.html.twig
* field--node--page.html.twig
* field--title.html.twig
* field--string.html.twig
* field.html.twig
-->
<!-- BEGIN OUTPUT from 'themes/custom/cwd_base/templates/field--node--title.html.twig' -->
^^ The "file name suggestions" are listed from most specific to least specific, so, the last line of the suggestions list is the name of the "original/source" template is called -- then you can hunt around for the original version with variables, etc.
cubear/cwd_base 适用场景与选型建议
cubear/cwd_base 是一款 基于 SCSS 开发的 Composer 扩展包,目前已累计 4.09k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2018 年 07 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 cubear/cwd_base 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cubear/cwd_base 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2018-07-02