Warning: Undefined array key "HTTPS" in include() (line 29 of /opt/www/fdv2/drupal.stage/web/sites/default/settings.local.php).
include('/opt/www/fdv2/drupal.stage/web/sites/default/settings.local.php') (Line: 4)
require('/opt/www/fdv2/drupal.stage/web/sites/drupal001.net/settings.php') (Line: 145)
Drupal\Core\Site\Settings::initialize('/opt/www/fdv2/drupal.stage/web', 'sites/drupal001.net', Object) (Line: 1099)
Drupal\Core\DrupalKernel->initializeSettings(Object) (Line: 701)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Drupal的node里面能不能搞一些token? - Drupal大学 - Drupal问答论坛
首页 / 帖子
Drupal的node里面能不能搞一些token?

我想在node里面写,类似[node1:title]这样的东西,自动替换成node1的标题,这种功能如何实现比较好?

谢谢!

2个答案
发布于:2014-10-22 22:17

Token Filte Module:

Install and enable Token Filter module and enable 'Replace tokens' filter e.g. for Full HTML text format.

For testing may edit any node and just type [site:name] to see if that works.

For Help, as admin go to Help->Token and you will find all the tokens you can use (/admin/help/token).

刘伯彪
发布于:2014-10-23 17:19

Custom filter 模块也挺好,自定义替换内容,可以参考一下。