implement token hooks to replicate [book] and [bookpath] patterns

greggles - December 29, 2006 - 15:35
Project:Outline
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:greggles
Status:patch (code needs work)
Description

In pathauto there is currently the ability to use [book] (for the title of the top level book) and [bookpath] for the entire set of parent titles of a node.

A replacement for the book's outlining feature should ideally implement the hook_pathauto so that we can provide an [outline] and [outlinepath] patterns that function similarly to the original ones.

We probably don't need to worry about this now and I'll be happy to help working on this feature as it gets close (hence I assign myself) but I wanted to get an issue into the queue while I'm thinking about it so it isn't a "whoops" down the road.

The outline module is a great idea - I look forward to seeing it!

#1

beginner - December 31, 2006 - 09:42

Thanks for the report. As you know, we are not there, yet. The basic functions of the module don't work yet.

Happy new year!

#2

beginner - April 5, 2007 - 12:32
Version:» 5.x-1.0

The module has a stable release already.
There is no hurry on my side, but if you care providing a patch now, I will review it.

#3

greggles - April 5, 2007 - 17:52
Title:implement hook_pathauto to replace [book] and [bookpath] patterns» implement token hooks to replicate [book] and [bookpath] patterns

Well...I'm in the middle of porting pathauto to use the token module. So...I'm not going to work on this until I get done with that and at that point I think the smart thing will be to use the token hooks instead of the pathauto hooks (since the pathauto hooks will no longer be used).

Anyway, it's super simple, so I can get this in the next week or two.

#4

ray007 - May 19, 2007 - 14:24

subscribing

#5

greggles - May 19, 2007 - 19:56

Just wanted to update this to say obviously week or two are gone, so anybody else who wants to work on it please do.

#6

radiantflow - May 27, 2007 - 15:37
Status:active» patch (code needs review)

Here is a patch for the pathauto.node.inc file (patched using the latest v5 pathauto release)

Its very simple really, i just duplicated all the book related code and modified it to work with outline.

Hope its of use to someone

Ben

AttachmentSize
pathauto.diff1.85 KB

#7

greggles - May 29, 2007 - 02:33
Status:patch (code needs review)» patch (code needs work)

This should really be implemented in the Outline module - not the pathauto module.

#8

PRFB - July 16, 2007 - 17:33

I use PathAuto and am about to start using Outline heavily. This feature would be really great to have....
-Patricia

#9

beginner - July 17, 2007 - 05:27

A patch is welcome.

 
 

Drupal is a registered trademark of Dries Buytaert.