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
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | date_pathauto_0.patch | 4.66 KB | oliver soell |
| #5 | date-pathauto.patch | 513 bytes | oliver soell |
| #3 | date_pathauto_0.inc | 4.16 KB | oliver soell |
| #1 | date_pathauto.inc | 4 KB | oliver soell |
| date_pathauto.patch | 599 bytes | oliver soell |
Comments
Comment #1
oliver soell commenteddate_pathauto.inc attached
Comment #2
karens commentedI'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?
Comment #3
oliver soell commentedupdated date_pathauto.inc with some code style fixes and an include in the beginning.
-o
Comment #4
karens commentedI went ahead and committed this to all branches. Thanks!
Comment #5
oliver soell commentedStill 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
Comment #6
karens commentedI already added that, so it should be OK.
Comment #7
oliver soell commentedAh cool, I see where you put it now. Thanks!
Comment #8
nilard commentedThis works with 'date' field type and doesn't work with 'datestamp'.
Comment #9
oliver soell commentedupdated to work with datestamp fields, and cleaned up a few things also.
-o
Comment #10
karens commentedThanks! Committed to all branches.
Comment #11
karens commentedForgot status..
Comment #12
(not verified) commented