Active
Project:
Dynamic Field
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2010 at 16:42 UTC
Updated:
10 Dec 2010 at 14:40 UTC
Jump to comment: Most recent file
I tried to use Dynamic Field (CCK) for displaying views and Google Map (php code to execute) on nodes. If I create a new Dynamic Field in a content type, then the earlier nodes I created in that content type does not show the Dynamic Field value (standard Drupal body template). If I create a new node, the Dynamic Field appears on newly created nodes. As I know, Dynamic Field is for on-the-fly visualization of code. I really dont understand, where is the problem. I found this bug (?) on 2 different Drupal installations (different servers, different environment) as well.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | phptext.module.txt | 3.6 KB | Kilgore Trout |
| #2 | phptext.module.txt | 3.64 KB | Kilgore Trout |
Comments
Comment #1
Kilgore Trout commentedI had to write a patch to solve this problem. I wrote a new function at the end of the module:
...and inserted a new line into the row number 114 with this content: if (arg(3) && arg(5) && arg(4)=='fields') {phptext_update_existing_nodes(arg(3), arg(5));}
This patched file has been uploaded here. It works for me correctly.
Comment #2
Kilgore Trout commentedInstead of file attached to #1, please use this one.
Comment #3
Andrew Gorokhovets commentedDynamic Field appear to old nodes in type where we first created it.
But don't appear to old nodes in type where we created it through Existing field.
to#2 This is no drupal code.
Drupal code must be like this:
But, if you have a lot of nodes in the same node type you will be get a "Allow memory limit" error.
P.S. Sorry for my english.