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

问题描述

我正在尝试创建一个 Pathauto 模式,它看起来像Drupal root/parent_menu_item_name/node_title",其中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.

我尝试了许多不同的变体,但没有任何效果.我已经尝试了 Pathauto 中的菜单路径 中的建议,但没有一个完全有效.它最终只是输出节点标题,之前没有任何内容.

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.

推荐答案

我相信凯南已经回答了这个问题:

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模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-14 04:44