Closed (won't fix)
Project:
Universally Unique IDentifier
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2008 at 15:18 UTC
Updated:
18 Jun 2016 at 10:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Arto commentedThis is a great idea as it would make it very easy to have nodes use
%uuidas their URL alias pattern in the Pathauto module.Comment #2
recidive commentedI support this.
Could you guys work on a patch?
Thanks!
Comment #3
ilo commentedSo, redicive, first impressions..
I'm using this patch right now in a live site as a test generating automatic node titles using pathauto and looks like it is working perfectly. I don't find a way to insert the taxonomy and comment tokens for now, so I'm uploading as is to get the feeling and start discussing ideas about additional tokens that should be provided by the module.
Comment #4
ilo commentedAnd actually it was failing because I forgot to verify the author-uuid token. There is a $node in this patch that should be $object. Will fix in the next patch with taxonomy and comment tokens included.
Comment #5
ilo commentedAn updated version of the patch including the fix and a global uuid token. This is the list of current implemented tokens:
Global:
- uuid: an arbitrary uuid generated on demand not linked with any object.
Node:
- uuid: the node's uuid.
- revision-uuid: the node revision's uuid
- author-uuid: the node author's uuid
User:
- uuid: the user's uuid.
The simpletest patch at #927778: Complete simpletest testcases for taxonomy and comments is including also testcases for the token support.
Taxonomy and comment are not yet implemented, nor tested.
Comment #6
recidive commentedI did some small code style changes and committed the patch. Thanks!
Comment #7
recidive commentedAlthough we have a handful of tokens to work with, I'm going to move the issue to "needs work" until we have added all possible tokens.
Comment #8
ilo commentedDid you revert the commit or should be update readme.txt with the included tokens up to now? I'd accept suggestions about taxonomy and comment tokens, I didn't put these in the patch because I have no idea what tokens will be usefull.
Any advice?
Comment #9
anonIs this feature included in the 7.x version? I cant find it.
Comment #10
anonHere is a patch for Drupal7.
Adds uuid tokens for:
Comment #11
dixon_Thanks everyone for working on this. This is finally committed to 7.x-1.x-dev and and will be in the release I'm rolling right now.
Comment #13
eiland commentedPatch at #5 applies to 6.x-1.0-beta2 butIt reports
user warning: Duplicate entry '' for key 'uuid_node_revisions_uuid_key' query: INSERT INTO uuid_node_revisions (vid, uuid, nid) VALUES (16, '', 11) in /root/sites/all/modules/uuid/uuid.module on line 105.And when bulk generating UUID nodes at /admin/settings/uuid I get a bunch of
Comment #14
skwashd commentedDrupal 6 core is no longer supported. We are no longer supporting 6.x-1.x versions of this module. I am closing this issue as won't fix.