跳转到主要内容
东方龙马 提交于 25 September 2014
"工欲善其事,必先利其器"
                               -- 《论语》

测试模块、主题、发行版的网站:

http://simplytest.me/

Drupal API:

https://api.drupal.org/ (英文,Drupal 官网 API)

http://api.drupalproject.org/ (中文,部分已翻译,感谢理查)

网站必备模块:

https://www.drupal.org/project/admin_menu 管理菜单(替代默认的顶部管理菜单)

https://www.drupal.org/project/module_filter 模块分组(模块列表归类,更加清晰,方便查找)

https://www.drupal.org/project/devel 开发工具模块 (模块开发神器)

linuxforpoj 提交于 24 September 2014

么,insert block这款插件的作用是在content中包含某个block的内容,相当方便于实现最新文章列表之类的功能

我用这货做了一个小白用的新闻功能

进入后台,编辑newspage这个内容类型的内容,然后使用views创建一个block

接着安装insert block,并在filter中启用insertblock的解释器

最后在数据库的block表中查找所需的block的module和delta并使用【block:module name=delta】调用该block就完成了!!!

FriendZhang 提交于 24 September 2014

场景: 网站中实现产品分类管理和展示功能。如下图所示,左边是产品分类的导航菜单,点击某条后打开该分类下所有产品的缩略图页面。点击图片,进入对应的产品详情页面。

1.png

要求:不懂技术的网站编辑可以很方便的管理产品分类,发布相关的产品文章。

模块:除了使用常见的view等模块之外,主要使用了一下两个模块

  • https://www.drupal.org/project/taxonomy_menu
  • https://www.drupal.org/project/taxonomy_display 

实现:

1、创建产品分类的‘术语表’。

2、创建产品内容节点,编辑员可以用来发布产品文章。其中增加了关联产品分类的字段,用来制定产品的所属分类。增加了图片上传,将提供给缩略图页面使用。

3、创建产品视图。如下图所示,关键点我用红框标注了。主要是要添加上下文过滤器。作用是接收导航菜单传来的参数,使视图显示对应的产品分类。

rat 提交于 24 September 2014

原文地址: https://www.drupal.org/node/2192175

原文版本:  September 23, 2014.

 

This page provides an example of how to create a content entity type, with administration management pages, for Drupal 8.

Note: We try to improve the module as well as the documentation in sync with the development process of core. It is intended for usage with the latest dev version. You can also have a peek in core modules such as node and comment which make use of the ContentEntityType.

rat 提交于 24 September 2014

原文地址: https://www.drupal.org/documentation/modules/entityreference

原文版本: August 30, 2013.

自 Drupal 8 以往, 实体引用 (Entity Reference) 模块成为核心模块, 它提供一个字段用以引用其他实体.

需要有关实体的更多信息, 请参见 实体 API 文档.

rat 提交于 24 September 2014

原文地址: https://www.drupal.org/documentation/modules/hal

原文版本: August 9, 2014. 

(原文未成)

The HAL module is included in Drupal core. When enabled, the HAL module serializes entities using HAL (Hypertext Application Language).

What is it?

For general information about the language, see the informal or formal (06) HAL specification.

rat 提交于 24 September 2014

原文地址: https://www.drupal.org/node/2143497

原文版本: November 25, 2013. 

(原文未成)

 

 

* Final name not yet defined, see #1976158: Rename entity storage/list/form/render "controllers" to handlers

While entities represent a piece of data, controllers are responsible for acting on and with them. The basic concept was introduced in Drupal 7, where the controller provided the API to load entities. That class was then extended in the entity.module to provide full CRUD support and other types of controllers were created.

订阅