Closed (outdated)
Project:
Tokenize
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2008 at 22:43 UTC
Updated:
27 Jun 2018 at 12:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kenorb commentedYep...
Comment #2
kenorb commentedVersion for 6.x in attachment
Comment #3
kenorb commentedAnd whole module as well if patch will not work.
Comment #4
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 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 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 commentedcan you post the patch, or a zip of your module?
Comment #9
ldbl commentedIt's seems that I port it.
Work on my machine with drupal 6.9
Comment #10
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 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 commentedTry this version.
Comment #13
ldbl commentedSorry it's seems that I missed some stuff.
Next time I will be more careful.
Thanks.
Comment #14
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) commentedSubscribing.
Why is there no -dev release for 6.x??
Comment #16
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.