本文介绍了Drupal 7:菜单结构层次结构中的Pathauto模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个Drupal root / parent_menu_item_name / node_title的Pathauto模式,其中node_title是菜单层次结构中parent_menu_item_name的子代。

I'm trying to create a Pathauto pattern which looks like "Drupal root/parent_menu_item_name/node_title" where "node_title" is a child of "parent_menu_item_name" in the menu hierarchy.

我尝试了许多不同的变体,没有任何作用。我在中的菜单路径中尝试过这些建议,而且没有一个工作在所有。最后输出节点标题,没有任何东西。

I've tried many different variations, and nothing works. I've tried the suggestions in Menu path in Pathauto, and none of them works at all. It just ends up outputting the node-title, with nothing before it.

我已经安装了最新版本的Token和Pathauto模块。

I've got the latest versions of the Token and Pathauto modules installed.

推荐答案

我相信这个问题已经被Kenan回答了:

I believe this question has been answered by Kenan:

[node:menu-link:parent:url:path]/[node:title]

它适用于我,所以我'很高兴!

It works for me, so I'm very happy!

这篇关于Drupal 7:菜单结构层次结构中的Pathauto模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 18:16