在drupal8的大本营里面发现了这个彩蛋,drupal8 examples隐藏的可够深的,不过还是被我给找到了。
目录:core\modules\system\tests\modules
模块默认的info文件里设定了隐藏属性:
hidden = TRUE
想做测试的朋友在前面添加分号(;),去掉改模块的隐藏属性,在extend下面就可以看到了。
还等什么?快开始你的测试之旅吧?
1、filedset更新为details
2、使用yml方式保存变量
drupal8表单相关
- 阅读更多 关于 drupal8表单
- 登录或注册以发表评论
1、添加扩展路径
2、调用yml存储的分页
drupal8变量的存储和设定使用yml文件
variable_get()/variable_set()替换为get()/set()
<?php
// Load a set of configuration out of the active store.
// 'node.settings' refers to the filename of the .yml file, without the extension.
//导入
$config = config('node.settings');
// Access a single value out of the store.
echo $config->get('items_per_page');
// Change a value and save it back to both the active store and the filesystem.
//--改变和保存
$config->set('items_per_page','20');
$config->save();
?>
config 文件存储目录
config/node.settings.yml 文件存储内容
下载安装drupal8版本,新版本的变化:
1、管理界面的变化。
顶部的导航更加简洁和方便,而且可以很方便的折叠和打开,打开以后单独显示在左侧区域。
2、模块管理名称更新为extend.
3、默认的内容类型为article,不再支持blogs模块.
可以在drupal官网上面贡献中文的模块吗?我的意思就是不翻译成英文的,包括模块的介绍也全部写成中文的,呵呵!请问下可以吗?游牧有人知道啊?
当点击注册的时候,会弹出一个页面,填入相关的信息,然后提交,这要用什么模块啊?
drupal7中怎么触发lightbox2模块啊??????
我主要实现用饼状图来显示一些信息,听说charts模块可以实现,但是安装后不会用,急急急