
Drupal8
for023
这个作者很懒,什么都没留下…
展开
-
New hooks for theme suggestions
Change record status: Published (View all published change records)Project: Drupal coreIntroduced in branch: 8.xIntroduced in version: 8.0-ALP转载 2015-06-24 15:44:55 · 538 阅读 · 0 评论 -
Drupal::httpClient中post,get参数参考
$httpclient = \Drupal::httpClient()->post($url, [ 'form_params' => $post, 'headers' => [ 'Referer' => $url, 'User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X原创 2017-09-14 17:11:36 · 666 阅读 · 0 评论 -
Retrieve Taxonomy Term by a custom field
<?php$_SERVER['REMOTE_ADDR']='localhost';// drupal bootstrap$drupal_directory = "/var/www/drupal";chdir($drupal_directory);define('DRUPAL_ROOT', getcwd());require_once './includes/bootstrap.inc'转载 2017-08-22 16:43:59 · 274 阅读 · 0 评论 -
Drupal 中读取Excel数据再转换格式到另一个Excel
开放原码了,再有同学碰到类似问题,不会像我这样到处去找资料和翻网站,码中有什么不好或者有什么缺点的请看到的同学多多指教,好更好的更新代码。放个costsheet.info先:name = CostSheet Convert Puma description = 读取CostSheet到Puma格式 package = Ewen DIY dependencies[] = phpe转载 2017-08-07 21:59:17 · 358 阅读 · 0 评论 -
清除drupal缓存cache 查看twig主题覆写文件 的方法
清除drupal缓存的方法:最常用的就是在后台操作 The easiest way to clear the Drupal cache is to go todmin/config/development/performanceAdministration > Configuration > Development > Performance-------------还有其他的转载 2017-03-07 21:15:23 · 1612 阅读 · 0 评论 -
解决 drush PDOException: SQLSTATE[HY000] [2002]
今天在Mac OS中安装Drush时遇到一个错误。Drush command terminated abnormally due to an unrecoverable error. [error] Additional uncaught exception thrown while handling exception. Original PDOException: SQLS转载 2017-03-03 16:18:45 · 1597 阅读 · 0 评论 -
Drupal8模板中替换系统的jquery库
[php] view plain copyprint?在CODE上查看代码片派生到我的代码片 function mytheme_js_alter(&$javascript, \Drupal\Core\Asset\AttachedAssetsInterface $assets) { // Swap out jQuery to use an updated ver转载 2016-11-15 14:56:22 · 544 阅读 · 0 评论 -
Configuring vim
VIMis an advanced text editor that seeks to provide the power of the de-facto UNIX editor 'vi', with a more complete feature set.Vim Plugin for DrupalThe Vim Plugin for Drupal (available o转载 2016-11-15 14:49:25 · 431 阅读 · 0 评论 -
drupal drush exception 'PDOException' with message 'SQLSTATE[HY000] [2002]
解决方案:https://drupal.org/node/1651282sudo mkdir /var/mysqlsudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock转载 2016-08-26 12:10:44 · 1002 阅读 · 0 评论 -
Drupal 8 - Custom classes for menu links
0down votefavoriteHow can I add custom classes for links into main menu in Drupal 8. This is template for my main menu called menu--main.html.twig{% import _self as menus %}{{ m转载 2015-06-24 16:02:30 · 682 阅读 · 0 评论 -
How do I add classes to main menu ul and li in Drupal 8
1down votefavorite1I want to generate the html elements and their classes to fit my styling of the main menu.I'm confused by all the near-possibilities offered in the api docum转载 2015-06-24 16:07:24 · 1100 阅读 · 0 评论 -
Drupal ajax html和bootstrap dropdown button的事件机制
最近遇到一个特稀奇的一件事情,通过ajax-path获取出来的列表数据,后面自定义的链接跳转按钮无法正常跳转。总结一下,网页加载与jquery的元素绑定机制是这样的,页面(document)加载完成后,页面附带的所有jquery js文件会对页面内容进行筛选绑定各个功能,ajax获取出来的新页面需要重新绑定js事件才能进行响应,否则就会出现前面的错误,链接地址无法正常跳转。下面是修改的代码原创 2017-09-25 16:03:08 · 492 阅读 · 0 评论