- 博客(218)
- 资源 (9)
- 收藏
- 关注
原创 JSONAPI Drupal8 中的获取Node的资源性图片的方法
GET article media entity reference field_image url, uri by including references URL:http://example.com/jsonapi/node/article/{{article_uuid}}?include=field_image,field_image.image,field_image.image.f...
2019-05-28 15:42:46
791
1
原创 Drupal8 中通过Vue resource 提交 Post 时的头部信息细节
今天在使用Vue来提交POST内容时总是有415的错误,虽然Drupal 的官网给JSONAPI提交的资料很清楚,但还是没有具体指明示例,为此也花了不少时间找测试,经过痛苦的Google和度娘都没有直接的资料,最后对比axios库找到一些资料,现在写出解决方案: var data={data:{type:'taxonomy_term--tax_brand',attributes:{name:t...
2019-05-12 17:51:19
561
原创 关于安装OpenMeetings时SOX报错记录
通过Openmeetings的官方安装说明以为会安装很顺利,但结果让人怀疑人生。让我出Bug的原因是在安装SoX时出现了下面的错误:./configure make make install 的过程中有错误信息:/sbin/ldconfig.real: Cannot mmap file /usr/local/lib/libsox.so.3 type sox command have error:...
2018-04-22 12:21:22
3632
1
翻译 Drupal lightning project install error
首先为composer配置Drupal的源,通过Composer update 和require 解决错误。1Fatal error: Interface 'League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface' not found in /www/wwwroot/lightning/profiles/lightning/...
2018-03-20 10:50:14
464
转载 Apache 安装后Error 403的故障排错方法
一、问题描述 在apache2的httpd配置中,很多情况都会出现403。 刚安装好httpd服务,当然是不会有403的问题了。主要是修改了一些配置后出现,问题描述如下: 修改了DocumentRoot目录指向后,站点出现403错误。设置了虚拟主机目录也可能导致403。apache的httpd服务成功启动,看起来都很正常,却没有权限访问日志出现: access to /
2018-01-07 14:25:41
5507
2
转载 C# 禁用Alt+F4 的小段
网上看到的大部分都是用 按键 处理,结果没有成功禁用Alt+F4 ,可能是时间都在2010年左右,Win 升级后失效了。 现在的都是Win7 10,后面找了N久找到一篇相同问题的,看到http://bbs.bccn.net/thread-286970-2-1.html,后面提到了有一小段程序可以禁用。放出来: protected override CreateParams C
2017-10-22 13:18:54
2115
原创 Drupal 7 commerce webform alert production unit price
function commerce_webform_alert_price_commerce_cart_line_item_refresh($line_item, $order_wrapper){ if($line_item->type=='commerce_webform'){ module_load_include('inc', 'webform', 'includes/webfor
2017-08-08 15:35:37
404
原创 Drupal 一个不小心的主题Function造成了主页丢失
上篇讲到自定主题页面,一直不能成功,也一直找相关的资料,结果一不小,不知道写入了一些什么hook造成了全局模板丢失,所有页面无法正常工作,页面直接只显示我的模板中的内容。 后面用过drush dis mymodule; drush cc all; 基本上没有作用,再找一些恢复主题的方法,后面在https://www.drupal.org/docs/7/administering-drup
2017-05-05 21:45:39
493
原创 Drupal 7 自定义页面如何向自定义的主题传参
根据 https://www.drupal.org/node/1560952 的介绍,我自定义了一个页面内容如下,数据都取到了,现在问题是数据没有按着实例传到主题变量中。 <?php function metest_theme(){ return array( 'metest'=>array( 'variables'=>array('output'=>null),
2017-05-04 14:41:01
1148
翻译 Drupal 建立非英文网页的设置
https://www.drupal.org/docs/7/multilingual/cookbook-build-a-non-english-d7-website Cookbook: Build a non-English D7 website Primary tabs ToggleEdit Discuss View hist
2017-02-21 19:10:59
631
原创 CentOs7 LAMP Drupal安装记录
1.重设IP 先使用DHCP 在/etc/sysconfig/network-scripts/ifcfg-eno***中加入 ONBOOT=YES BOOTPROTO=DHCP # systemctl restart network 2.更新yum的源为国内源 wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
2017-02-12 15:17:53
1129
翻译 entity-metadata-wrapper 相关的使用
BASIC USAGE First step, create the wrapper. // You need the entity type and entity id. $type = 'node'; $nid = 123; $wrapper = entity_metadata_wrapper($type, $nid); // You can also pass i
2016-12-20 11:27:52
3012
翻译 Hierarchical Select in a block as a taxonomy filter
I've created a sample module that creates a new block which allows you to filter by Taxonomy term. The code is very clearly documented, to make it easier for you to adapt it to your needs. The bloc
2016-12-08 14:21:13
412
转载 win7 无法识别硬盘时的安装方法
进PE 复制安装程序的三个文件夹和文件:boot | boot.efi | resource| 执行 c:\boot\bootset.exe /nt60 c:
2016-12-07 13:30:05
1511
翻译 Drupal node field 文本字段设置长度不足时如何修改
在Drupal 中设置了新的字段长度当设置不足长度时,就无法在管理页面进行修改,需要修改数据库了,为了方便更好的修改,可以使用下面的模块对其修改: function warehouse_fabric_print_menu(){ $items=array(); $items['warehouse/modfiyfieldlenght']=array( 'title'=>'修改字段的长度
2016-11-25 14:15:33
765
翻译 一些Drupal的How to细节处理
如何在Views中设置distinct,有二种方法,一是在Query setting 中设置,二是在Aggregation 中设置,具体请参考网页: https://www.ostraining.com/blog/drupal/duplicate-views-results/
2016-11-23 09:18:00
578
翻译 Centos7 firewall 的操作方法和应用
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7#enable-your-firewall-to-start-at-boot 感觉很容易理解,也很好上手,比iptable要好用呀,为何还有人用回iptable。上firewall吧。
2016-11-03 17:26:39
3454
原创 An error occurred while processing information_archive_op with arguments
An error occurred while processing information_archive_op with arguments : information_archive_op 自上次搞通了一遍Drupal的Batch后,这次又要搞一个结果很失败,这个流程中的数据不知道错哪儿,只能再细心点了。 先把要做的最小化一遍,再把模块中的处理程序慢慢加入。 Batch
2016-10-24 14:55:51
772
原创 如何解决 Undefined offset: 3 in user_node_load() 问题
How to resolve notice : Undefined offset: 560 in user_node_load() 这个问题是由于删除某个用户后,用户创建的Node都将出现这个问题,所以如果碰到这个问题,需要修改下DB了。 UPDATE node SET uid = {new_user_uid} WHERE uid = 560;
2016-09-28 16:10:43
1822
原创 Drupal Rest post data format
今天上传日期格式的时候有点小问题,给说下。 日期在设置的时候有三个类型:文本,选择,泡泡。 在选择类型下,请使用 'field_sacndate':{'und':[{'value': {'month':'3','year':'2013','day':'6','hour':'16','minute':'15','second':'15'}}]}, 在文本类型下,请使用 'fi
2016-09-27 17:18:09
541
原创 关于在Drupal中使用REST Server 增加node时有taxonomy_term 和 node reference的解决方法
node的Data结构如上图,其中field_sample_state是一个taxonomy_term,field_sampletracert 是一个node reference。按着一般情况,直接生成了以下的Json: 'field_smaple_state':{ 'und':[{'tid':'560'}]},
2016-09-26 16:21:27
730
原创 c#中restsharp 连接Drupal Rest_Server
过程很是不容易,多花了几天用来找问题,做下记录共享给有需要的人。这是第一篇连接的后续篇。 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using RestSharp; using RestSharp.Authe
2016-09-23 17:13:37
1429
原创 Drupal 7 中 Restful 在C#中连接认证登录
首先设定我们的Drupal7 Restful服务正常开启,通过/api/login进行认证。还没有了解Restful的可以参考下我的关于Restful之一二三四五的连接。 下面主要根据http://www.asp.net/web-api/overview/advanced/calling-a-web-api-from-a-net-client参考与多方面的查找资料,找到下面的解决方案: 今天一
2016-09-19 20:32:39
1342
翻译 在Drupal中使用Restful之五 将taxonomy 与 node 进行联合
http://www.fourkitchens.com/blog/article/rest-easy-part-5-everybody-get-together 将Temr与Node进行连接在一起,很清楚的说明,再深入一步就没有手册了,没有说明如何增加的。 好吧我下一步将在其它的教程中来继续这篇文章。 最后把这几篇的教程中的源码打包发上来了。
2016-09-18 13:16:46
768
翻译 在Drupal中使用Restful之四
http://www.fourkitchens.com/blog/article/rest-easy-part-4-taxonomy-man 很好很简单,操作与node相关不了多少。做了一次很EASY!
2016-09-18 12:55:33
1280
翻译 在Drupal中使用Restful之三
http://www.fourkitchens.com/blog/article/rest-easy-part-3-now-filter 如何使用Restful来进行对node实体的筛选,包括下面的按内容、按范围、或是应用基本的操作如 ,=,= 又或是应用组合筛选。 Filter our custom API node endpoint by valueFilter o
2016-09-18 11:52:21
957
翻译 在Drupal中使用Restful之二
http://www.fourkitchens.com/blog/article/rest-easy-part-2-sub-property-boogaloo 应用与之一相比并没有过多的修改,在V0.1版本上进行修改都正常通过测试,但使用V0.2的版本来操作发生了一个错误: {"type":"http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-
2016-09-17 16:57:56
968
翻译 在Drupal中使用Restful之一
http://www.fourkitchens.com/blog/article/rest-easy-part-1-and-restful-you So easy ,我就不翻译了,应当都可以看懂的。
2016-09-17 16:17:26
1156
原创 Drupal batch api的应用之一
代码上来,作用是对一些数据进行按多条件GroupBy后进行归档和生成关联ID: 是对Drupal explam 中Batch 的第一个案例应用。 <?php /** * @file * Defines "一个布匹上传完成后的归档规则" * * @TODO: Split admin functions into their own file. */ function fabr
2016-07-18 00:05:32
695
原创 Drupal 中 写VBO操作模块
内容就不说别的什么了,直接贴下代码: <?php /** * @file * Defines "fabric_base_vbo" * * @TODO: Split admin functions into their own file. */ /* function fabric_base_vbo_action_info(&$form, $form_state, $form_id)
2016-07-12 09:20:23
549
原创 IE网页贴纸打印程序
(function ($) { Drupal.behaviors.sample_barcode_print = { attach: function (context, settings) { $('input#sample_barcode_print',context).once('sample_barcode_print',function(){ //https://www
2016-06-30 09:54:13
1665
转载 必读资料
http://www.infocool.net/kb/OtherFrontDesign/201606/152440.html?ref=myread
2016-06-26 15:59:06
343
原创 Drush has Error on windows
安装很成功,按https://www.drupal.org/node/594744这里的介绍安装的。 Here are the complete steps you need to take: Install Cygwin Install ncurses package. You need to select ncurses manually in cyg
2016-06-26 15:45:02
753
翻译 Windows 2008 Fileserver Permission Access Deny
windows 2008 administrator an error occurred while appling security information I resolved this problem with the following steps: Open a Command Prompt "As Administrator" Run the following com
2016-06-23 08:56:28
730
转载 WinCE与Windows交互
https://msdn.microsoft.com/zh-cn/library/ms837846.aspx#EWAA
2016-06-21 21:36:15
1101
翻译 drupal中如何设置JS一次执行
5. The Drupal JavaScript API Last updated October 27, 2015. Created on September 5, 2008. Edited by milodesc, NickWilde, nod_, digitaldonkey. Log in to edit this
2016-06-15 15:02:59
1086
翻译 在Drupal在统计记录的数量
原文在这里 http://drupal.stackexchange.com/questions/20705/count-results-in-views-using-aggregation Yes, it is possible in Views 3 out of the box. The idea is the same as in SQL aggregations.
2016-05-30 10:33:16
1645
翻译 Drupal 8 安装模块时报错
以下是报错提示:Installing ubercart An error has occurred. Please continue to the error page An AJAX HTTP error occurred. HTTP Result Code: 403 Debugging information follows. Path: /core/authorize.php/core/a
2016-05-24 10:13:31
2929
翻译 Aliyun 中PHP如何升级
各位看官,在Aliyun上的论坛中的帮助真的很简单并没有告诉我如何升级到更新版本PHP 5.5.35的,我努力的试了三次,最后翻到了Aliyun中他们写的Shell,才升级成功了。 这里把它的Shell共享出来,在网上也不要找得太累。 #!/bin/bash rm -rf php-5.6.3 if [ ! -f php-5.6.3.tar.gz ];then wget ht
2016-05-22 20:51:11
1877
原创 Drupal 自定义模块条码生成
需要生成一个规则条码,自定义了下面功能: <?php /** * @file * Defines "通过已上传的样板资料生成对应的条码" * * @TODO: Split admin functions into their own file. */ /** * Implements hook_menu(). 执行Hook来注册一个URL */ function sample_
2016-05-20 17:11:38
628
如何增加系统服务启动项
2009-07-02
asp 生成xml文件并调用amchart画图表的实例
2010-11-14
win32diskimager.7z
2019-12-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅