I have a field that will be used in different content types. This will be a computed field using a field that depends on that node and a globalk field. I am wondering if there is a way to do this? I know I can access the fields within a node, but how can I create a field that is accessible by all notes of different types? It is like a global parameter that affects how the values of this calculated field within nodes.

I hope you guys can help me. Thanks

Comments

Tmanagement’s picture

I have no idea but are also interested in this

clivesj’s picture

I don't know if this is what you mean, but I had a similar case and did it like this:

I had a computed field in node_type1 depending upon a global value - a counter of the amount of nodes type 1, 2 and 3 created by the user.
The computed field would display a value based on the (global)counter.
So any time the user created nodes of type 1, 2, and 3 the counter had to be accessed and updated.
I made a table with a user_id column and a counter column and accessed the data by quering the database