Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Yep...
Comment | File | Size | Author |
---|---|---|---|
#12 | tokenize.module.patch | 3.32 KB | kenorb |
#12 | tokenize.zip | 9.01 KB | kenorb |
#10 | tokenize.zip | 9.2 KB | ldbl |
#9 | tokenize.zip | 9.2 KB | ldbl |
#3 | tokenize.zip | 9.11 KB | kenorb |
Comments
Comment #1
kenorb CreditAttribution: kenorb commentedYep...
Comment #2
kenorb CreditAttribution: kenorb commentedVersion for 6.x in attachment
Comment #3
kenorb CreditAttribution: kenorb commentedAnd whole module as well if patch will not work.
Comment #4
pkej CreditAttribution: pkej commentedIt _seems_ to work except for:
The form settings aren't saved, so everytime I go into the field, I have to set the Tokenize options.
Nothing is saved in the database.
Anyway, I tested Automatic Nodetitles in both a 6.x with Tokenize, and one without, and as far as I can see the functionality of tokenizing the CCK fields works in both, it seems to be a part of Token or CCK now.
I do believe I used to use Tokenize in 5.x to get tokens from CCK fields, but now it doesn't seem neccessary.
Can you confirm? Or please tell me why I need it, as I might have forgotten.
Best regards,
Paul
Comment #5
gregglesPaul - Automatic Nodetitles gets the CCK Tokens through the Token API. The CCK modules themselves provide the Tokens for CCK fields.
Tokenize allows you to enter tokens into CCK fields and have them replaced with the proper value.
Comment #6
pkej CreditAttribution: pkej commentedWell, then it isn't working on 6.6. The settings aren't saved to the database. The tokenize table is empty.
I have tried to create two fields for this without anything happening. I'll take a stab at the code myself.
Paul
Comment #7
ldbl CreditAttribution: ldbl commentedI also try it and it not work with drupal 6.9 . I change module a little bit and tokenize table was filled.
But still doesn't work. Problem was in form variables .
Comment #8
pkej CreditAttribution: pkej commentedcan you post the patch, or a zip of your module?
Comment #9
ldbl CreditAttribution: ldbl commentedIt's seems that I port it.
Work on my machine with drupal 6.9
Comment #10
ldbl CreditAttribution: ldbl commentedI left one print_r just before switch for form. Until I port the module.
Here i zip file without this print-r
Comment #11
kenorb CreditAttribution: kenorb commentedYou should fix in this version some things that was converted in my version.
- Like serialize and unserialize when calling cache is not necessary anymore.
http://api.drupal.org/api/function/cache_set
- No dependency for Content module
Comment #12
kenorb CreditAttribution: kenorb commentedTry this version.
Comment #13
ldbl CreditAttribution: ldbl commentedSorry it's seems that I missed some stuff.
Next time I will be more careful.
Thanks.
Comment #14
ldbl CreditAttribution: ldbl commented@kenorb
I tried your version and I receive this error:
Fatal error: Cannot use string offset as an array in /home/mystite/bport/sites/all/modules/tokenize/tokenize.module on line 154
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous commentedSubscribing.
Why is there no -dev release for 6.x??
Comment #16
kenorb CreditAttribution: kenorb commentedDrupal 5 and Drupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.