cubear/cwd_base 问题修复 & 功能扩展

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

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

cubear/cwd_base

最新稳定版本:3.0.13

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

Latest Stable Version

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.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 18
  • Forks: 2
  • 开发语言: SCSS

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2018-07-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固