Hellow everybody!

Even though there are many different modules that implement that feature - I came up to the conclusion that the best way would have to implement it here.

In general, system is complicated, but I'll try to explain the main reason to have User Reference Field.
Crusial part is to have Taxonomy Term -> User connection. Why not User to Taxonomy Term? It is because I have to assign a manager to every taxonomy term, each term should have only one assigned manager to is. Threrefore adding a new term I have to pick up a manager and it is mandatory, now way to create a term without a user assigned to it.

The reason to do that is because creating a node people are choosing taxonomy term. Based on the term I need to assign a manager. Users themself should not list managers.

Therefore I need to add User Reference field to this module. Could you please help me?

Comments

B-Prod’s picture

Do you have skills in development? This module is not supposed to get new features (see project page), because the current supported Drupal core version is 7.x

I can help you to review your patches if you provide some, and give you advice to correct your work if necessary. When ready, I could also publish quickly a new release.

But I have no time to develop for free a new feature for Term Field module. If it is really necessary for you and you do not have required skills to implement this feature, please ask a Web agency for that.

Omio’s picture

Thank you very much for a quick reply!

I see. I know that many developers are really out of time nowadays - to much work :) That is our problem.

I know, sometimes I regret we made a system on Drupal 6, but it is to late to change it, because a lot of stuff have been implemented already based on Drupal 6 API.

I opened that issue because I though that anyone thought about it already and have a solution. I am really out of time and a client really need that feature yesturday, I was about to start to write it from a scratch but I saw that module and thought "This is it, this is what is gonna save my time". Unfortunately I gotta rewrite is slightly to implement what I need.

The closest to this topic is http://drupal.org/node/518418 but its for an older version - just too old.

Don't worry if you dont have a time, thats all right. I just though if you know the code already that's gonna be just a min work for you to create you field type.

B-Prod’s picture

It is quite easy to add a new plugin to Term Field module. Look at the existing plugins in the "plugins" directory. You probably will need to write some Views handlers also.
To declare the plugin, you have to add an entry in the term_fields.module file in the function "term_fields_term_fields_info()".

If you want to contribute to Term Field module, I will take the time to review your patches, as said above.

B-Prod’s picture

Category: task » feature
Status: Needs work » Closed (won't fix)

@Omio: Feel free to reopen the issue if you want to contribute to the module.

Omio’s picture

Status: Closed (won't fix) » Needs work

@B-Prod: Hello! I just hope you'll find a time to work on this module. What I need to implement are:
- User reference field
- Rules integration. I need to use Rules module to assign a user based on value of Term Field
- Views integration. I need to group the output of taxonomy terms based on a value of Term Field

Ofcourse we are going to contribute your time and efforts. Just let us know if you have a time for it

Regards

B-Prod’s picture

If your requirements are only on the output on 1 field, you can use the Views "group by" native feature that is available on display settings in a view. This does not perform a real GROUP BY in the query, but group the results after the query has been processed.

For more advanced grouping, you can use the Views Group By, that provides real GROUP BY possibilities (it alters the SQL query and do not play with the results as Views native display handler option).