« March 2012 | Main | May 2012 »

April 24, 2012

File naming conventions

The Research Gateway needs one.


Version numbers would increment with non-minor changes to the file (e.g., reformatting, addition of data, header changes).

I dislike the fact that end dates would also change. In my mind, once a file name is set, the only thing that should change going forth is the version number.

I should probably add an additional data set ID (or data file ID) to the file name.

Currently, I use the following (somewhat strictly enforced convention):

[descriptive_terms]_v[version number].[extension]

Posted by kkwaiser at 04:02 PM | Comments (0)

April 23, 2012

Bookmark-able searches for Drupal's Biblio module

I've noticed that searches into our bibliography don't produce a linkable URL. While there may be other ways around this, one can always add /search/[terms] to the end of the URL:


Posted by kkwaiser at 02:12 PM | Comments (0)

April 10, 2012

Incorrect path for CCK FileField

Strange bug that give an uploaded file the incorrect path for a time. To recreate:

1. Upload a file to a node. Will get a path like this:


2. Save. Path remains:


3. Now go into Edit mode. The path is now correct:


Related issues on Drupal.org

It is the fault of FileField Paths.

File name replacement pattern does not work anymore (CCK + FileField) but after second saving

Node links to original file path after creation until the node is saved again

FileField Paths 2.x (currently in internal development) is reverting back to the original method of using the CCK widgets fields to store the data instead of using the FileField Paths database table, which will fix this issue and a few others at the same time.

Agileware proposes a solution: change the module weights (how? IDK).

Hefox proposes a patch (with rave reviews).


Fixed in the dev version of FileField Paths. The stable version is now 2+ years old!!!!!!!!!

Posted by kkwaiser at 04:33 PM | Comments (0)