A small patch to the node_relativity module to include all parents titles as a path when using pathauto

jacquesm - January 3, 2008 - 16:38
Project:Node Relativity
Version:5.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:Newbie
Description

After reading a bunch of support issues and possible solutions I cooked up a fix for the 'all ancestors' problem that many people seem to have when using pathauto in combination with the node relativity module.

This patch is relative to the 5.x-2.x-dev branch of the code,

It's only a couple of lines, the basic idea is to add one more replacement value to the list of options that autopath gives, I've named it 'parent-titlepath'.

I've got only very limited experience with drupal, so please review this code thoroughly before using it.

best regards, and I hope it is useful to someone.

Jacques Mattheij

AttachmentSize
node_relativity.patch2.12 KB

#1

jhedstrom - March 3, 2008 - 21:10

I tried to use this patch, and on submit, the module seems to get stuck in an infinite loop.

 
 

Drupal is a registered trademark of Dries Buytaert.