Closed (fixed)
Project:
Pathauto
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Reporter:
Created:
24 Mar 2010 at 19:27 UTC
Updated:
21 Aug 2010 at 21:30 UTC
Jump to comment: Most recent file
To properly match D7's entity information and to help generalize the code used in Pathauto, we need to rename all the 'pathauto_taxonomy_[vid]_pattern' variables to 'pathauto_taxonomy_term_[vocabulary:machine-name]_pattern'.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 752030-pathauto-taxonomy-pattern-variables-D7.patch | 4.19 KB | dave reid |
| #5 | 752030-pathauto-taxonomy-pattern-variables-D7.patch | 4.18 KB | dave reid |
Comments
Comment #1
gregglesMachine names can get long, right?
I think we might bump up against the 128 character limit on variable names if we do this. Perhaps we need our own variable storage before this issue can be worked on (I think you have an issue for that somewhere, right?).
Comment #2
dave reidAccording to the D7 schemas, the machine name is limited to 32 characters, so I don't think we'd be hitting the limit (total length would be 64 and limit is 128 in D7). Ideally we'd be storing these in the DB with the progressive disclosure issue.
Comment #3
dave reidActually the machine name limit is 21 characters, so even better. :)
Comment #4
dave reidComment #5
dave reidEasier that expected now that a lot of clean-ups and duplication are gone.
Comment #6
dave reidTested this manually and the upgrade worked great. Revised patch that uses a little less greedy update function if the user doesn't run update.php right away.
Comment #7
dave reidCommitted to CVS http://drupal.org/cvs?commit=403836. Changing the base name of 'pathauto_taxonomy_...' to 'pathauto_taxonomy_term_...' is not possible with the current APIs and will be addressed with 7.x-2.x and the progressive disclosure storage.