HOWTO: Auto-create a cryptic URL Path

ebrittwebb's picture

How Do I: When creating a new node, auto-create a cryptic URL path, similar to a "Replication ID" (like this: www.thesite.com/C560E5B2-6459-478C-A913-4C895D7D046C). Can I do this with some special token?

Scenario: I am asking local school parents to submit certain information using a custom content type. Rather than force user login for security (which a lot of them won't hassle with it), I want to auto-create a really cryptic URL path for the content they create, so that others can't guess it. But I also want to allow anonymous visitors to access the node, if/when I send them the cryptic URL.

Thanks for your advice.

Groups:
Login to post comments

how about timestamps?

christefano's picture
christefano - Sun, 2008-11-02 22:03

I had a similar need for Digital Dollhouse and added support for timestamps to Token. We could have used seconds since Epoch but support for timestamps seemed more useful at the time. After seeing your post here, I rerolled the patch and added support for Epoch.