pathauto

Drupal 8: Mismatched entity and/or field definitions

爱⌒轻易说出口 提交于 2020-01-07 02:25:29
问题 While trying to understand why my view is not displaying, I noticed the following error in the log: I do not think it is possible to delete the URL alias from Taxonomy terms. At least I cannot find how to do this. I have, however gone through ALL of my taxonomy terms and removed the value for this field. I have also done the following with Pathauto: Also, I have checked the report located at admin/reports/fields and can confirm that there are no entities that use a field called URL alias. I

Fundamental understanding of how Views and Pathauto work together

好久不见. 提交于 2019-12-21 09:17:08
问题 I am having fundamental problems understanding when to use a pathauto rule, and when to use a views page path. I have several custom content types, and I am using blocks to display certain parts of nodes on certain paths. Then I use a views page to display the main node on a path. When I do this, I can't use pathauto, as it overrides the paths I set in views. Eg.. If I set up a views page path of "location/%", and set a pathauto rule for Location content types of "location/[title-raw]", when

Drupal 7:Pathauto patterns from menu structure hierarchy

陌路散爱 提交于 2019-12-09 06:33:31
问题 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. I've got the latest versions of the Token and Pathauto modules installed. 回答1: I believe this question

Fundamental understanding of how Views and Pathauto work together

廉价感情. 提交于 2019-12-04 03:09:25
I am having fundamental problems understanding when to use a pathauto rule, and when to use a views page path. I have several custom content types, and I am using blocks to display certain parts of nodes on certain paths. Then I use a views page to display the main node on a path. When I do this, I can't use pathauto, as it overrides the paths I set in views. Eg.. If I set up a views page path of "location/%", and set a pathauto rule for Location content types of "location/[title-raw]", when I browse to mysite.com/location/mylocation pathauto wins, and simply displays the full node. And if I

Drupal 7:Pathauto patterns from menu structure hierarchy

白昼怎懂夜的黑 提交于 2019-12-03 08:09:34
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. I've got the latest versions of the Token and Pathauto modules installed. Dylan Spencer James I believe this question has been answered by Kenan: Kenan's answer [node:menu-link:parent:url:path]/[node:title]

Menu path in Pathauto

痴心易碎 提交于 2019-12-03 05:38:36
问题 How do I get pathauto under Drupal 7 to generate a URL alias by the full menu path? 回答1: Just an update in case anyone comes across this with a more recent version of Pathauto/Token. This worked for me: [node:menu-link:parents:join-path]/[node:menu-link] 回答2: I ended up using: [node:menu-link:parent:url:path]/[node:menu-link] Heavy caution though: If the node does not have a menu link, you'll end up without an automatically aliased page. On the bright side, this might make you aware of orphan

Username as a path

人走茶凉 提交于 2019-12-02 19:19:25
问题 I would like to have a user's name as a part of a URL, e.g. mysite.com/username. This should redirect to the user profile. I use Profile 2 and Pathauto, but I am not sure how to do this. 回答1: With pathauto, you just have to configure user paths with a user token, e.g. [user:name] . 回答2: Pathauto pattern of [user:name] under User paths should do the trick. 来源: https://stackoverflow.com/questions/5961990/username-as-a-path

Menu path in Pathauto

喜欢而已 提交于 2019-12-02 18:58:57
How do I get pathauto under Drupal 7 to generate a URL alias by the full menu path? Just an update in case anyone comes across this with a more recent version of Pathauto/Token. This worked for me: [node:menu-link:parents:join-path]/[node:menu-link] I ended up using: [node:menu-link:parent:url:path]/[node:menu-link] Heavy caution though: If the node does not have a menu link, you'll end up without an automatically aliased page. On the bright side, this might make you aware of orphan pages. (Consider it a feature!) Note that using the pattern: [node:menu-link:url:path]/[node:menu-link] will

Username as a path

萝らか妹 提交于 2019-12-02 11:56:50
I would like to have a user's name as a part of a URL, e.g. mysite.com/username. This should redirect to the user profile. I use Profile 2 and Pathauto , but I am not sure how to do this. With pathauto, you just have to configure user paths with a user token, e.g. [user:name] . Pathauto pattern of [user:name] under User paths should do the trick. 来源: https://stackoverflow.com/questions/5961990/username-as-a-path

In Drupal, how to change the values passed to Pathauto?

冷暖自知 提交于 2019-11-30 22:22:21
I have Pathauto configured to generate an alias based on the title of a node, for a specific content type. The problem is that I want to make small changes in this title before Pathauto uses it to generate the alias. The first comment in this post suggests the use of hook_token_values, but I couldn't really understand how to use it, even after reading the docs . In my tests, when I implement this hook, the alias generated is always "array", which means I'm missing something. Any help? Thanks. It might be that you missed to implement hook_token_list as well. Providing a new token is a two step