I've cobbled together support for date components to be used as pathauto placeholders. Only offers the various fields (d,m,y,h,n,s) based on the granularity info for the date field.

Patch attached for the conditional include in date.module, and I'll attach the date_pathauto.inc in another comment.
-o

Comments

oliver soell’s picture

StatusFileSize
new4 KB

date_pathauto.inc attached

karens’s picture

I'm more than happy to add pathauto integration, but I don't use pathauto so I can't evaluate this patch. Can anyone else confirm that this is the right approach and that it works?

oliver soell’s picture

StatusFileSize
new4.16 KB

updated date_pathauto.inc with some code style fixes and an include in the beginning.
-o

karens’s picture

Status: Needs review » Fixed

I went ahead and committed this to all branches. Thanks!

oliver soell’s picture

Category: feature » bug
Status: Fixed » Needs review
StatusFileSize
new513 bytes

Still one issue - the date_pathauto.inc file needs to be included which I don't think I had in my initial patch but had in the second..

here's a patch that adds the conditional include.
cheers,
-o

karens’s picture

Status: Needs review » Fixed

I already added that, so it should be OK.

oliver soell’s picture

Ah cool, I see where you put it now. Thanks!

nilard’s picture

Status: Fixed » Active

This works with 'date' field type and doesn't work with 'datestamp'.

oliver soell’s picture

Status: Active » Needs review
StatusFileSize
new4.66 KB

updated to work with datestamp fields, and cleaned up a few things also.
-o

karens’s picture

Thanks! Committed to all branches.

karens’s picture

Status: Needs review » Fixed

Forgot status..

Anonymous’s picture

Status: Fixed » Closed (fixed)