0
,我想這樣做的if/then
if [node:subtitle] is available make the path pattern
[node:title]-[node:subtitle]
else
[node:title]
什麼是做這樣的事情的最好方法Drupal的路徑模式令牌?
,我想這樣做的if/then
if [node:subtitle] is available make the path pattern
[node:title]-[node:subtitle]
else
[node:title]
什麼是做這樣的事情的最好方法Drupal的路徑模式令牌?
你不能用pathauto模塊來做,恐怕它根本沒有這個功能。您必須實施hook_node_presave()
並手動更改要爲其執行此操作的每個節點的路徑。