When adding/editing a node, Pathauto's check box is placed below the text field for manual path entry. Yet it states the following:

"An alias will be generated for you. If you wish to create your own alias below, untick this option. To control the format of the generated aliases, see the Pathauto settings."

In order for the manual path alias text field to show up "below" as described, the #weight of $form['path']['pathauto_perform_alias'] should be set to a negative value in pathauto.module so that it always remains on top.

CommentFileSizeAuthor
#1 below_eq_below-265079-1.patch696 bytesFreso

Comments

Freso’s picture

Status: Active » Needs review
StatusFileSize
new696 bytes

This patch does the job. We might want to look into changing the string and moving it back to "weight = 0" for 6.x-2.x though.

Moonshine’s picture

Well, personally I think the Pathauto option should come above the manual entry field, as most of the time Pathauto is used to overide manual entry with it's templates.

I'm actually using an additional patch that hides the manual path entry field(instead of just "disabling" it as Pathauto does currently) if the automatic alias option is checked. It keeps the form nice and clean, and limits user confusion re: fields that don't seem to "respond". Unticking the automatic alias option reveals the manual alias field and description.

I'll post it if you're interested...

Freso’s picture

We don't want to hide the input field. See #170673: Override Pathauto with your own alias/URL for discussion on this.

Freso’s picture

Version: 6.x-1.x-dev » 5.x-2.x-dev
Status: Needs review » Patch (to be ported)

Committed. Needs to go into 5.x-2.x as well.

Freso’s picture

Status: Patch (to be ported) » Fixed

Patch applied to 5.x as well, so committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.