I'm trying to develop a module that hooks into the taxonomy plugin and am a bit lost on how to start. Basically my content creation page will have the following:

Title
Body
Taxonomy Term (a series of drop downs).
Available Dates (text field)
Rate (money - text field)

I'd like the taxonomy to be admin created only and have users select what taxonomy term their listing is associated with. I'm considering doing the following:

Creating a custom content type through the content type menu.
Creating a custom module and using the taxonomy api.
Creating a custom module and extending the taxonomy api.

I've made a couple example modules and forms so I'm a bit past that. The thing that's holding me up is how to hook into the taxonomy I'm interested in. Also, I'm leaning towards the first option because I wouldn't want to deviate too much from the way drupal handles its database (my schemas don't resemble anything close to the node schema and I feel sticking with drupal's node schema will make it easier to upgrade my module between versions of drupal and versions of how I hold data.

Any advice is much appreciated (as well as links to any tutorial pages on similar issues).

Comments

coreyp_1’s picture

Why not use the Date module and it's CCK field for your date?

I'm confused about the Taxonomy. Are you saying that you have, for example, 2 taxonomy vacabularies. You want the submitting user to be able to access taxonomy 1, but not taxonomy 2, but you want the admin to be able to edit both? If that is the case, then you can do this with the Taxonomy Role module.

Then again, maybe I'm misunderstanding what you're trying to do.

-Corey

nevets’s picture

I would suggest the Content Construction Kit (CCK) for creating the content type. Your series of drop downs suggest a vocabulary that is hierarchically in which case you might look at hierarchically select