I'm trying to use $node->lnid as a value for a CCK computed field. I have done this before in the 5.x version of the module but the same configuration doesn't work undex 6.x.
As a test, I've assigned "print_r($node)" to the value of the computed field and "lnid" attribute does not appear in the object.

Comments

jbrown’s picture

try giving type_local_nids a negative module weight

deciphered’s picture

Title: node->lnid not accesible from CCK computed field » Type-local nids runs too late.
Priority: Normal » Critical
StatusFileSize
new855 bytes

Hi jbrown,

Having a weight of 0 for a module beginning with the letter "t" means that $node->lnid and the token [lnid] will not be available for about 75% (alphabetical calculation, made for a point not for accuracy) of modules with the weight 0. I would have to think this is a fairly critical issue?

Sure each user hitting this issue could simply adjust the weights of their modules, but really, how many users are going to be to do that? It's not a very user friendly solution.

I would suggest setting the weight of Type-local nids to -1 on install.

Patch attached (requires #678386: Code cleanup patch).

Cheers,
Deciphered.

jbrown’s picture

Priority: Critical » Normal
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.