上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
摘要: Views中的format有table,grid,unformatted list等,但是没有2 columns等选项。如果要达到如下效果:左侧一列有title,content,右侧一列image。各占50%。我们可以安装views_fieldset模块安装此模块后可添加"Global: Field... 阅读全文
posted @ 2015-12-26 11:45 飞凡123 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 转载地址:http://verynull.com/2015/11/02/Converting-7-x-modules-to-8-x/本节主要介绍如何把drupal7的模块转化为drupal8。参考资料https://www.drupal.org/update/modules/7/8先介绍一个模块dr... 阅读全文
posted @ 2015-12-23 18:53 飞凡123 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 转载:https://github.com/oneuijs/You-Dont-Need-jQuery/blob/master/README.zh-CN.mdYou Don't Need jQuery前端发展很快,现代浏览器原生 API 已经足够好用。我们并不需要为了操作 DOM、Event 等再学习... 阅读全文
posted @ 2015-12-21 22:52 飞凡123 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 用于理解$q服务参考:http://www.zouyesheng.com/angular.html#toc39广义回调管理和其它框架一样, ng 提供了广义的异步回调管理的机制。$http服务是在其之上封装出来的。这个机制就是 ng 的$q服务。不过 ng 的这套机制总的来说实现得比较简单,按官方的... 阅读全文
posted @ 2015-12-11 18:12 飞凡123 阅读(499) 评论(0) 推荐(0) 编辑
摘要: $http是ng内置的一个服务。是简单的封装了浏览器原生的XMLHttpRequest对象。 写法1 实际上$http方法返回一个promise对象,这样可以方便的进行链式调用。 于是我们可以这样 var promise = $http({ method: "GET", url: 'data.jso 阅读全文
posted @ 2015-12-11 17:55 飞凡123 阅读(720) 评论(0) 推荐(0) 编辑
摘要: 默认情况在Drupal7的安装目录下存在sites目录sites目录结构如下:--all--default--example.sites.php--README.txt1. 添加新域名,如添加www.a.com域名则应该修改为--www.a.com--all--default--example.si... 阅读全文
posted @ 2015-11-27 21:59 飞凡123 阅读(1223) 评论(0) 推荐(0) 编辑
摘要: D8中移除了variable表及相关方法 (variable_get(),variable_set()等) 。用config表取代了。新的方法该如何使用?以D8的Youtube模块为例配置文件要放在模块名下的config/install/youbute.setting.yml文件中。格式{machi... 阅读全文
posted @ 2015-11-26 21:04 飞凡123 阅读(954) 评论(0) 推荐(0) 编辑
摘要: 转载:https://yplam.com/post/79Drupal Console 是面向Drupal 8 的一套命令行工具,用来生成Drupal 8模板代码,并且可以跟Drupal 8应用进行交互。Drupal Console 与大家熟知的Drush有点类似,但提供不一样的功能,它可以跟Drus... 阅读全文
posted @ 2015-11-19 21:50 飞凡123 阅读(739) 评论(0) 推荐(0) 编辑
摘要: 用户导入比较简单。使用Feeds模块中的Feeds Import工具就行。不过有个不好地方的,导入前密码是明文,导入后该模块会自动转换为Drupal加密后的密码。这需要导入后原wp的用户也能登录drupal。幸运的是安装一个模块后即可:参考:https://www.drupal.org/node/2... 阅读全文
posted @ 2015-10-25 21:40 飞凡123 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Drupal版本 7.40方法1:根目录index.php添加require_once 'includes/password.inc';require_once 'includes/bootstrap.inc';echo user_hash_password('123456');这样就能在页面中显示... 阅读全文
posted @ 2015-10-25 21:18 飞凡123 阅读(513) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页