Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Update
A new issue has been opened for this,
#1218952: Introduce a <none> pattern to explicitly disable pathauto (e.g. for specific node types)
Original request
Hi,
I can't seem to find how to disable pathauto for different node types, specifically project and project release...
I'm pretty sure this is possible but can't seem to find how to do it.
Thanks for any help,
Wayne
Comments
Comment #1
gregglesFrom Pathauto pattern recipes:
Also, I believe that you did some investigation and found that Project module has a namespace collision with Pathauto. I believe (based on my investigation today) that it is actually a collision with the core path module.
If you believe it is more specifically with the Pathauto module could you please update #284300: Pathauto (or just core Path module) conflicts with project* with your thoughts?
Thanks.
Comment #2
watbe CreditAttribution: watbe commentedok, thanks for that. posted in #282300 as well
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
donquixote CreditAttribution: donquixote commentedOk, good to know.
However, I am not 100% happy with it.
It means that you can not have a default pattern, and at the same time have it disabled for some node types.
Of course instead of the default pattern I could simply do some copy+paste.
The annoying part is when I create new node types: These will not have any alias by default, if I leave the default blank. So for every new type I have to go again to the pathauto page.
Maybe I would be less unhappy about this, if the pathauto pattern for a node type could be edited from the content type configuration page.
Thanks!
(I might produce a patch, we'll see)
Comment #5
Dave ReidDon't re-open long-closed issues. I am sure there is an issue in the queue somewhere for adding the pattern UI to the content type forms.
Comment #6
gregglesI really don't think there is a solution that involves a simple UI for this other than #273104: Using "progressive disclosure" for alias patterns.
Let's focus on that issue instead of this.
Comment #7
gregglescrosspost.
Comment #8
donquixote CreditAttribution: donquixote commented#5 (Dave Reid).
While this is an old issue, the problem description is still 100% valid. I don't see any benefit in opening a new one.
> adding the pattern UI to the content type forms.
> Using "progressive disclosure" for alias patterns.
On second thought, I no longer think any of these is a sufficient solution to the problem of explicitly and intentionally disabling pathauto for a specific type.
There has to be a difference between "explicitly disabled for this type" and "noone took the time to configure this yet, so we use the default".
I suggest that we introduce a
<none>
pattern for explicit disabling.Comment #9
Dave ReidI'll repeat: Don't re-open long-closed support issues.
File a new feature request.
Comment #10
donquixote CreditAttribution: donquixote commentedI totally don't see the point.
Whatever.
#1218952: Introduce a <none> pattern to explicitly disable pathauto (e.g. for specific node types)
Comment #10.0
donquixote CreditAttribution: donquixote commentedLink to new issue.