As of Drupal 6 you can select a language for each created path alias. This selection is not available when creating path aliases with rules. It would be nice to have this feature as well.

Comments

DrakeRemory’s picture

Component: Rules Core » Rules Engine
StatusFileSize
new2.31 KB

Ok, I implemented this function and I added a checkbox to make the created alias lowercase. Files are attached.

mitchell’s picture

Status: Active » Needs work

@DrakeRemory: could you please create a patch?

mitchell’s picture

Title: Language selection when creating new aliases » Language selection when creating new aliases + lowercase checkbox
Version: 6.x-1.0-rc1 » 6.x-1.x-dev
Assigned: DrakeRemory » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.06 KB

Patch from #1.

fago’s picture

Title: Language selection when creating new aliases + lowercase checkbox » Language selection when creating new aliases

Use language_list() or another API function instead of directly querying the db. Also transforming to lowercase would need the same option for the path conditions, but let's better handle that in another issue.

fago’s picture

Status: Needs review » Needs work
fago’s picture

Status: Needs work » Fixed

I've just done some work on the path module integration and fix the language issue as well as others:

improved the path module integration:
* #440416 added a language option to the conditions + the path alias action
* fixed the "Set content path alias" action to also work when the acting user has not the permission to set paths
* added a check to the actions to verify that the destination path alias doesn't exist yet

Status: Fixed » Closed (fixed)

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

Wappie08’s picture

Hi fago, is this patch allready committed? Sound like a musthave for some specific solutions, thanks DrakeRemory for the patch!

Greetings Wappie