自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(218)
  • 资源 (9)
  • 收藏
  • 关注

原创 JSONAPI Drupal8 中的获取Node的资源性图片的方法

GET article media entity reference field_image url, uri by including referencesURL:http://example.com/jsonapi/node/article/{{article_uuid}}?include=field_image,field_image.image,field_image.image.f...

2019-05-28 15:42:46 577 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 401

原创 关于安装OpenMeetings时SOX报错记录

通过Openmeetings的官方安装说明以为会安装很顺利,但结果让人怀疑人生。让我出Bug的原因是在安装SoX时出现了下面的错误:./configure  make make install 的过程中有错误信息:/sbin/ldconfig.real: Cannot mmap file /usr/local/lib/libsox.so.3type sox command have error:...

2018-04-22 12:21:22 3263 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 348

转载 Apache 安装后Error 403的故障排错方法

一、问题描述在apache2的httpd配置中,很多情况都会出现403。刚安装好httpd服务,当然是不会有403的问题了。主要是修改了一些配置后出现,问题描述如下:修改了DocumentRoot目录指向后,站点出现403错误。设置了虚拟主机目录也可能导致403。apache的httpd服务成功启动,看起来都很正常,却没有权限访问日志出现: access to /

2018-01-07 14:25:41 4698 1

转载 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 1955

原创 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 321

原创 Drupal 一个不小心的主题Function造成了主页丢失

上篇讲到自定主题页面,一直不能成功,也一直找相关的资料,结果一不小,不知道写入了一些什么hook造成了全局模板丢失,所有页面无法正常工作,页面直接只显示我的模板中的内容。后面用过drush dis mymodule; drush cc all; 基本上没有作用,再找一些恢复主题的方法,后面在https://www.drupal.org/docs/7/administering-drup

2017-05-05 21:45:39 376

原创 Drupal 7 自定义页面如何向自定义的主题传参

根据 https://www.drupal.org/node/1560952 的介绍,我自定义了一个页面内容如下,数据都取到了,现在问题是数据没有按着实例传到主题变量中。<?phpfunction metest_theme(){ return array( 'metest'=>array( 'variables'=>array('output'=>null),

2017-05-04 14:41:01 1051

翻译 Drupal 建立非英文网页的设置

https://www.drupal.org/docs/7/multilingual/cookbook-build-a-non-english-d7-websiteCookbook: Build a non-English D7 websitePrimary tabsToggleEditDiscussView hist

2017-02-21 19:10:59 488

原创 CentOs7 LAMP Drupal安装记录

1.重设IP先使用DHCP在/etc/sysconfig/network-scripts/ifcfg-eno***中加入 ONBOOT=YESBOOTPROTO=DHCP# systemctl restart network2.更新yum的源为国内源wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

2017-02-12 15:17:53 1025

翻译 entity-metadata-wrapper 相关的使用

BASIC USAGEFirst 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 2870

翻译 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 319

转载 win7 无法识别硬盘时的安装方法

进PE 复制安装程序的三个文件夹和文件:boot | boot.efi | resource|执行 c:\boot\bootset.exe /nt60 c:

2016-12-07 13:30:05 1323

翻译 Drupal node field 文本字段设置长度不足时如何修改

在Drupal 中设置了新的字段长度当设置不足长度时,就无法在管理页面进行修改,需要修改数据库了,为了方便更好的修改,可以使用下面的模块对其修改:function warehouse_fabric_print_menu(){ $items=array(); $items['warehouse/modfiyfieldlenght']=array( 'title'=>'修改字段的长度

2016-11-25 14:15:33 665 1

翻译 一些Drupal的How to细节处理

如何在Views中设置distinct,有二种方法,一是在Query setting 中设置,二是在Aggregation 中设置,具体请参考网页:https://www.ostraining.com/blog/drupal/duplicate-views-results/

2016-11-23 09:18:00 464

翻译 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 3268

原创 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 630

原创 如何解决 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 1667

原创 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 444

原创 关于在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 628

原创 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 1330

原创 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 1212 1

翻译 在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 617

翻译 在Drupal中使用Restful之四

http://www.fourkitchens.com/blog/article/rest-easy-part-4-taxonomy-man很好很简单,操作与node相关不了多少。做了一次很EASY!

2016-09-18 12:55:33 1144

翻译 在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 792

翻译 在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 818

翻译 在Drupal中使用Restful之一

http://www.fourkitchens.com/blog/article/rest-easy-part-1-and-restful-youSo easy ,我就不翻译了,应当都可以看懂的。

2016-09-17 16:17:26 1021

原创 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 596

原创 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 460

原创 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 1508

转载 必读资料

http://www.infocool.net/kb/OtherFrontDesign/201606/152440.html?ref=myread

2016-06-26 15:59:06 283

原创 Drush has Error on windows

安装很成功,按https://www.drupal.org/node/594744这里的介绍安装的。Here are the complete steps you need to take:Install CygwinInstall ncurses package. You need to select ncurses manually in cyg

2016-06-26 15:45:02 644

翻译 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 602

转载 WinCE与Windows交互

https://msdn.microsoft.com/zh-cn/library/ms837846.aspx#EWAA

2016-06-21 21:36:15 921

翻译 drupal中如何设置JS一次执行

5. The Drupal JavaScript APILast 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 971

翻译 在Drupal在统计记录的数量

原文在这里http://drupal.stackexchange.com/questions/20705/count-results-in-views-using-aggregationYes, 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 1514

翻译 Drupal 8 安装模块时报错

以下是报错提示:Installing ubercartAn error has occurred.Please continue to the error pageAn AJAX HTTP error occurred.HTTP Result Code: 403Debugging information follows.Path: /core/authorize.php/core/a

2016-05-24 10:13:31 2731

翻译 Aliyun 中PHP如何升级

各位看官,在Aliyun上的论坛中的帮助真的很简单并没有告诉我如何升级到更新版本PHP 5.5.35的,我努力的试了三次,最后翻到了Aliyun中他们写的Shell,才升级成功了。这里把它的Shell共享出来,在网上也不要找得太累。#!/bin/bashrm -rf php-5.6.3if [ ! -f php-5.6.3.tar.gz ];then wget ht

2016-05-22 20:51:11 1760 1

原创 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 546

win32diskimager.7z

This program is designed to write a raw disk image to a removable device or backup a removable device to a raw image file. It is very useful for embedded development, namely Arm development projects (Android, Ubuntu on Arm, etc). Anyone is free to branch and modify this program. Patches are always welcome. This release is for Windows 7/8.1/10. It will should also work on Windows Server 2008/2012/2016 (although not tested by the developmers). For Windows XP/Vista, please use v0.9 (in the files archive).

2019-12-24

openmeeting

openmeetings 官方安装文档,帮助新人快速安装,对了是要在Ubuntu下用的。

2018-04-22

Hierarchical Select in a block as a taxonomy filter With Att

一个关于阶梯(多层)选择套件form API的应用示例

2016-12-08

Drupal Restful simple

Drupal Restful

2016-09-18

drupal 通过phpexcel读写excel

drupal 通过phpexcel读写excel

2016-04-13

asp 生成xml文件并调用amchart画图表的实例

根据amchart的说明文档用ASP生成XML后画图文报表的实例。 原代码在我的博客上可以参考:http://blog.csdn.net/e_zhiwen/archive/2010/11/12/6004617.aspx 这里是我的做好后的实例。

2010-11-14

Office Password Remover.exe

Office 2003 Password Remover

2010-11-10

如何增加系统服务启动项

在网上找了N久没找到正确的解决方法,大部分的人都是讲把程序放到启动项中,而我所提出的是在域中机器启动后没有不会自动登录的情况下,把程序加载到系统服务的启动项中,使得机器在没有登录时也能运行。 最后还是老大找到了他的方法。现在共享给各位,希望对有需要的朋友有所帮助。

2009-07-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除