I've slightly changed autopath.module to add dates to the created aliases, using

$alias = "archive/".date("Y/m/d/", $node->created).$alias;

( following inspiration from http://www.codepoetry.net/archives/2005/02/06/my_drupal_code_changes.php )

This works perfectly for nodes that I create / edit normally, but I can't bulk-apply these to historical nodes for some reason - $node->title is correct for the bulk update, $node->created is blank.

Comments

mikeryan’s picture

Kind of interesting to report a bug in your own change to a module:-). But as it turns out, prescient because I threw together a merger of autopath with Tommy Sandstrum's path_automatic which had the bug.

Until the merged module is released, you can fix your version by adding "created" to the SELECT query in _autopath_bulkupdate().

jerakeen’s picture

I laugh at such petty social-imposed restrictions. Applied, it works, thanks very much.

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 15814)