Block https://jamesqi.com/ zh-hans Drupal里面PHP程序调用Views带变量参数Block的办法 https://jamesqi.com/%E5%8D%9A%E5%AE%A2/Drupal%E9%87%8C%E9%9D%A2PHP%E7%A8%8B%E5%BA%8F%E8%B0%83%E7%94%A8Views%E5%B8%A6%E5%8F%98%E9%87%8F%E5%8F%82%E6%95%B0Block%E7%9A%84%E5%8A%9E%E6%B3%95 <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--title--blog.html.twig x field--node--title.html.twig * field--node--blog.html.twig * field--title.html.twig * field--string.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'themes/olivero_subtheme/templates/field--node--title.html.twig' --> <span>Drupal里面PHP程序调用Views带变量参数Block的办法</span> <!-- END OUTPUT from 'themes/olivero_subtheme/templates/field--node--title.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--uid--blog.html.twig x field--node--uid.html.twig * field--node--blog.html.twig * field--uid.html.twig * field--entity-reference.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'core/modules/node/templates/field--node--uid.html.twig' --> <span> <!-- THEME DEBUG --> <!-- THEME HOOK: 'username' --> <!-- BEGIN OUTPUT from 'core/themes/olivero/templates/user/username.html.twig' --> <a title="查看用户资料。" href="/%E7%94%A8%E6%88%B7/James_Qi">James Qi</a> <!-- END OUTPUT from 'core/themes/olivero/templates/user/username.html.twig' --> </span> <!-- END OUTPUT from 'core/modules/node/templates/field--node--uid.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--created--blog.html.twig x field--node--created.html.twig * field--node--blog.html.twig * field--created.html.twig * field--created.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'core/modules/node/templates/field--node--created.html.twig' --> <span>周四, 04/04/2019 - 10:48</span> <!-- END OUTPUT from 'core/modules/node/templates/field--node--created.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'links__node' --> <!-- FILE NAME SUGGESTIONS: * links--node.html.twig x links.html.twig --> <!-- BEGIN OUTPUT from 'core/themes/olivero/templates/navigation/links.html.twig' --> <!-- END OUTPUT from 'core/themes/olivero/templates/navigation/links.html.twig' --> Thu, 04 Apr 2019 02:48:27 +0000 James Qi 872 at https://jamesqi.com https://jamesqi.com/%E5%8D%9A%E5%AE%A2/Drupal%E9%87%8C%E9%9D%A2PHP%E7%A8%8B%E5%BA%8F%E8%B0%83%E7%94%A8Views%E5%B8%A6%E5%8F%98%E9%87%8F%E5%8F%82%E6%95%B0Block%E7%9A%84%E5%8A%9E%E6%B3%95#comments 一个Drupal网站Views消失的排查 https://jamesqi.com/%E5%8D%9A%E5%AE%A2/%E4%B8%80%E4%B8%AADrupal%E7%BD%91%E7%AB%99Views%E6%B6%88%E5%A4%B1%E7%9A%84%E6%8E%92%E6%9F%A5 <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--title--blog.html.twig x field--node--title.html.twig * field--node--blog.html.twig * field--title.html.twig * field--string.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'themes/olivero_subtheme/templates/field--node--title.html.twig' --> <span>一个Drupal网站Views消失的排查</span> <!-- END OUTPUT from 'themes/olivero_subtheme/templates/field--node--title.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--uid--blog.html.twig x field--node--uid.html.twig * field--node--blog.html.twig * field--uid.html.twig * field--entity-reference.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'core/modules/node/templates/field--node--uid.html.twig' --> <span> <!-- THEME DEBUG --> <!-- THEME HOOK: 'username' --> <!-- BEGIN OUTPUT from 'core/themes/olivero/templates/user/username.html.twig' --> <a title="查看用户资料。" href="/%E7%94%A8%E6%88%B7/James_Qi">James Qi</a> <!-- END OUTPUT from 'core/themes/olivero/templates/user/username.html.twig' --> </span> <!-- END OUTPUT from 'core/modules/node/templates/field--node--uid.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--created--blog.html.twig x field--node--created.html.twig * field--node--blog.html.twig * field--created.html.twig * field--created.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'core/modules/node/templates/field--node--created.html.twig' --> <span>周三, 04/29/2015 - 21:45</span> <!-- END OUTPUT from 'core/modules/node/templates/field--node--created.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'links__node' --> <!-- FILE NAME SUGGESTIONS: * links--node.html.twig x links.html.twig --> <!-- BEGIN OUTPUT from 'core/themes/olivero/templates/navigation/links.html.twig' --> <!-- END OUTPUT from 'core/themes/olivero/templates/navigation/links.html.twig' --> Wed, 29 Apr 2015 13:45:49 +0000 James Qi 540 at https://jamesqi.com https://jamesqi.com/%E5%8D%9A%E5%AE%A2/%E4%B8%80%E4%B8%AADrupal%E7%BD%91%E7%AB%99Views%E6%B6%88%E5%A4%B1%E7%9A%84%E6%8E%92%E6%9F%A5#comments Drupal中为了添加统一Block而编写Module https://jamesqi.com/%E5%8D%9A%E5%AE%A2/Drupal%E4%B8%AD%E4%B8%BA%E4%BA%86%E6%B7%BB%E5%8A%A0%E7%BB%9F%E4%B8%80Block%E8%80%8C%E7%BC%96%E5%86%99Module <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--title--blog.html.twig x field--node--title.html.twig * field--node--blog.html.twig * field--title.html.twig * field--string.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'themes/olivero_subtheme/templates/field--node--title.html.twig' --> <span>Drupal中为了添加统一Block而编写Module</span> <!-- END OUTPUT from 'themes/olivero_subtheme/templates/field--node--title.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--uid--blog.html.twig x field--node--uid.html.twig * field--node--blog.html.twig * field--uid.html.twig * field--entity-reference.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'core/modules/node/templates/field--node--uid.html.twig' --> <span> <!-- THEME DEBUG --> <!-- THEME HOOK: 'username' --> <!-- BEGIN OUTPUT from 'core/themes/olivero/templates/user/username.html.twig' --> <a title="查看用户资料。" href="/%E7%94%A8%E6%88%B7/James_Qi">James Qi</a> <!-- END OUTPUT from 'core/themes/olivero/templates/user/username.html.twig' --> </span> <!-- END OUTPUT from 'core/modules/node/templates/field--node--uid.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--created--blog.html.twig x field--node--created.html.twig * field--node--blog.html.twig * field--created.html.twig * field--created.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'core/modules/node/templates/field--node--created.html.twig' --> <span>周三, 03/07/2012 - 09:36</span> <!-- END OUTPUT from 'core/modules/node/templates/field--node--created.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'links__node' --> <!-- FILE NAME SUGGESTIONS: * links--node.html.twig x links.html.twig --> <!-- BEGIN OUTPUT from 'core/themes/olivero/templates/navigation/links.html.twig' --> <!-- END OUTPUT from 'core/themes/olivero/templates/navigation/links.html.twig' --> Wed, 07 Mar 2012 01:36:49 +0000 James Qi 316 at https://jamesqi.com Drupal中添加自定义区域(Region)放置区块(Block) https://jamesqi.com/%E5%8D%9A%E5%AE%A2/Drupal%E4%B8%AD%E6%B7%BB%E5%8A%A0%E8%87%AA%E5%AE%9A%E4%B9%89%E5%8C%BA%E5%9F%9F%28Region%29%E6%94%BE%E7%BD%AE%E5%8C%BA%E5%9D%97%28Block%29 <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--title--blog.html.twig x field--node--title.html.twig * field--node--blog.html.twig * field--title.html.twig * field--string.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'themes/olivero_subtheme/templates/field--node--title.html.twig' --> <span>Drupal中添加自定义区域(Region)放置区块(Block)</span> <!-- END OUTPUT from 'themes/olivero_subtheme/templates/field--node--title.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--uid--blog.html.twig x field--node--uid.html.twig * field--node--blog.html.twig * field--uid.html.twig * field--entity-reference.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'core/modules/node/templates/field--node--uid.html.twig' --> <span> <!-- THEME DEBUG --> <!-- THEME HOOK: 'username' --> <!-- BEGIN OUTPUT from 'core/themes/olivero/templates/user/username.html.twig' --> <a title="查看用户资料。" href="/%E7%94%A8%E6%88%B7/James_Qi">James Qi</a> <!-- END OUTPUT from 'core/themes/olivero/templates/user/username.html.twig' --> </span> <!-- END OUTPUT from 'core/modules/node/templates/field--node--uid.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'field' --> <!-- FILE NAME SUGGESTIONS: * field--node--created--blog.html.twig x field--node--created.html.twig * field--node--blog.html.twig * field--created.html.twig * field--created.html.twig * field.html.twig --> <!-- BEGIN OUTPUT from 'core/modules/node/templates/field--node--created.html.twig' --> <span>周三, 01/26/2011 - 18:07</span> <!-- END OUTPUT from 'core/modules/node/templates/field--node--created.html.twig' --> <!-- THEME DEBUG --> <!-- THEME HOOK: 'links__node' --> <!-- FILE NAME SUGGESTIONS: * links--node.html.twig x links.html.twig --> <!-- BEGIN OUTPUT from 'core/themes/olivero/templates/navigation/links.html.twig' --> <!-- END OUTPUT from 'core/themes/olivero/templates/navigation/links.html.twig' --> Wed, 26 Jan 2011 10:07:31 +0000 James Qi 81 at https://jamesqi.com https://jamesqi.com/%E5%8D%9A%E5%AE%A2/Drupal%E4%B8%AD%E6%B7%BB%E5%8A%A0%E8%87%AA%E5%AE%9A%E4%B9%89%E5%8C%BA%E5%9F%9F%28Region%29%E6%94%BE%E7%BD%AE%E5%8C%BA%E5%9D%97%28Block%29#comments