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!

CommentFileSizeAuthor
#6 pathauto.diff1.85 KBsmoothify
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

beginner’s picture

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!

beginner’s picture

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.

greggles’s picture

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.

ray007’s picture

subscribing

greggles’s picture

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

smoothify’s picture

Status: Active » Needs review
FileSize
1.85 KB

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

greggles’s picture

Status: Needs review » Needs work

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

PRFB’s picture

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

beginner’s picture

A patch is welcome.

greggles’s picture

Assigned: greggles » Unassigned
captaindav’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)