Manual Path Alias field shows up *above* Pathauto but is referenced as being below.

Moonshine - May 31, 2008 - 21:03
Project:Pathauto
Version:5.x-2.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

Freso - June 1, 2008 - 12:18
Status:active» needs review

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.

AttachmentSize
below_eq_below-265079-1.patch 696 bytes

#2

Moonshine - June 2, 2008 - 17:42

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...

#3

Freso - June 2, 2008 - 18:40

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

#4

Freso - June 2, 2008 - 18:57
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.

#5

Freso - June 8, 2008 - 09:38
Status:patch (to be ported)» fixed

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

#6

Anonymous (not verified) - June 22, 2008 - 09:44
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.