I am using CCK, taxonomy, content_taxonomy, and contemplate modules.

I have 4 categories:

street address
city
state
zip

I used content_taxonomy to create taxonomy fields in my cck pages.

I needed this because:

My categories are the same as 4 of my cck fields (noted above). In order to get them printed out, I had to list them in categories within my cck page and then again in cck fields in order to print out on the page in my tables I made.

With the taxonomy fields, I was able to get rid of the extra cck fields and just have the taxonomy fields print instead.

Problem is when I use contemplate. I cannot alter the contemplate AT ALL or my taxonomy fields do not show. I had to reset it to the orginal view without my custom tables so that the fields would show.

At first, I thought it was just messing with the taxonomy fields, but after playing around a bit, I saw that no matter what I did to the other fields, it still made the taxonomy fields disappear.

Need some help with this...

Thanks,

Kris

Comments

kweisblatt’s picture

~~~~~~~~~~~~~~~~
Kris
Current project: www.cribfax.com

beauregard’s picture

Hi

I am working on a similar problem and found your post. Do I understand right, that without contemplate you were able to display taxonomy fields in a cck node? Up to now I can display cck nodes only in a list or table view but never in a full node view. Did you manage this and if yes, how?

Thanks
Andre

kweisblatt’s picture

Yes, when I don't use contemplate, I can see my taxonomy fields. When using contemplate, they disappear. It turns out that this is because contemplate only outputs fields it came with. You can check out the issues on the contemplate module page. As far as the views module, I think you can select the fields you want within your cck, but your issues might be for the same reason. You should visit the views module page and see issues there. It's more helpful asking the module dev for help. Let me know if you get this sorted out. I have given up on it for now hoping that they will fix these problems with 5.0

~~~~~~~~~~~~~~~~
Kris
Current projects: www.cribfax.com
www.myabatherapist.com

beauregard’s picture

thanks for your info. At my place it is different. I disabled now the contemplate module, the taxonomy fields are still not showing in full node view. The taxonomy fields are shown in list_view or table_view, with and without contemplate. Can you see the taxonomy fields in full node views?
And another question: I am not using content_taxonomy, I assign taxonomies to my cck nodes as I would assign taxonomies to any other node.

André

kweisblatt’s picture

Someone correct me if I am wrong, but I think you have to enable content_taxonomy in order to use taxonomy fields with cck. Which is why you can't see them in full node view.
I hope cck comes with all these options in 5.0 :)
~~~~~~~~~~~~~~~~
Kris
Current projects: www.cribfax.com
www.myabatherapist.com

seanberto’s picture

Have you tried just using the following php in your contemplate body field:

print $body

This should grab the taxonomy fields, but it will remove all your flexibility for theming the rest of the content node layout.

The better way to do this, which I don't understand, would be to use the $taxonomy variable available in contemplate. But it's an array, and I'm not sure how to use it to display all taxonomy links.

Sean Larkin

seanberto’s picture

Figured this one out with some help from Marcel.

See http://drupal.org/node/63114

Sean Larkin