Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
I find Pathauto for Drupal 7 a little too hard to setup. I had no problems with D6, but in D7 I really don't understand the patterns.
The forums are located in: /forum
The URLs for the containers are: /forum/container
The URLs for the forums are: /forum/container/forumname
So, the pattern for forums and containers is: forum/[term:parent]/[term:name]
Now, I need to create topics aliases like this: /forum/container/forumname/topicname
What is the right pattern?
Thank you so much.
Comments
Comment #1
Dave ReidCurrently there is no token available to connect nodes with the forum (which is a taxonomy term field so it's not so simple anymore). This will be solved with #691078: Field tokens so your pattern for topics would be something like [node:taxonomy-forums:first:url:alias]/[node:title].
Comment #3
marek.d CreditAttribution: marek.d commentedHas the token issue been address? What is the replacement pattern?
In the patterns configuration screen under Forum, there is no filed for forum topics, only forums and containers. I am using chain menu access module which takes care of the forums and containers, but my forum topics still start from the root of the site? The only way to change that is to provide suitable replacement patterns for the first, generic, node patterns.
Comment #4
marek.d CreditAttribution: marek.d commentedComment #5
tsvenson CreditAttribution: tsvenson commentedSince field tokens now are available in the token module, it is possible to use "forum/[node:taxonomy_forums]/[node:title]" to get a nice clean path for forum topics.