Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
master
Component:
Miscellaneous
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2006 at 22:24 UTC
Updated:
1 Nov 2008 at 02:21 UTC
When using the content_taxonomy.module to create taxonomy fields, the contemplate will not show the fields if I alter any of the fields. SO, I had to reset my page to view all the fields for now, so it is looking pretty ugly.
Comments
Comment #1
kweisblatt commentedI changed this to a feature request because after reading other posts I found that contemplate simply isn't showing field values that didn't originally come with cck.
I think the content_taxonomy module will become an important module (seeing what I can do with taxonomy fields is amazing with cck). It would be awesome to pull it al together with contemplate. I love contemplate... it is one of the most useful modules!
If this can be done, but no one has time, can you maybe proivide a workaround for now to get it to work?
Thanks!
Kris
Comment #2
marcoBauli commentedyes, no fields, arrays, tags or anything that is not coming from contemplate...
I am personally needing to display Image.mod, Userreview.mod and Category.mod in my nodes, but no luck using contemplate!
Maybe this could be turned into a more general feature request? :o
critical for me too anyway.. i am definitely willing to donate to anyone who could fix this!
Thank you
Comment #3
kweisblatt commentedJust got back from vacation and was hoping for more requests :(
Well, there are 2 of us now!!
I guess for a more general request, a workaround solution would be good to allow any fields to show in contemplate :)
Comment #4
marcoBauli commenteddid some more testing:
seems that Contemplate picks some "random" variables from other non-CCK modules.
(To get to show those variables in the right field of Contemplate you need to install the module, activate it and associate it to the type you are building a template for)
For example:
This issue is a total stop for this otherwise beautyfull module which basically plays well only with CCK and core. If you need more contrib modules to attach content to your nodes better opt for the good old node-content-type.tpl.php files.....pity
Comment #5
jjeff commentedThe ConTemplate module lists all of the attributes of the node object during the view phase of hook_nodeapi.
There are lots of modules "out there" that add information to the $node->body, but DO NOT add any information to the $node itself. For instance, IMO there should be $node->event_view for the information that normally gets prepended to $node->body.
You can create a patch for most modules by finding the module's implementation of hook_nodeapi (example
event_nodeapi()) and finding a line that looks something like this:$node->body .= $eventstuff;or maybe:
$node->body = $eventstuff . $node->body;and inserting a line something like this:
$node->eventstuff = $eventstuff;just before it.
This way the $eventstuff will be available to ConTemplate separate from the body. It will show up in the listing within the template editing page and you can add it without having to call any special theme functions.
If you write these functions for these modules, PLEASE SUBMIT THEM as an issue for that module. This is the reason that ConTemplate is difficult to use with these modules.
Comment #6
kweisblatt commentedThanks for the explanation, but I am not seeing this line in the content_taxonomy module I am using.
Comment #7
jjeff commentedIs this where you found content_taxonomy.module?
http://drupal.org/node/62451
I guess I didn't realize that this was a CCK field/widget type rather than a full module. This would take an entirely different approach then.
I can't comment on it without spending more time with the code, so I can't say what sort of magic is going on here.
Comment #8
kweisblatt commentedYes, that is where I got the module. I have also commented there hoping to get a response from the dev, but nothing so far :(
Any insight you can give on how to get this to work would greatly be appreciated!
Kris
Comment #9
kweisblatt commentedJust to make a note: I have also tried theming the node in by using node-content-my_content.tpl.php and it still doesn't work, so my assumtion that it was contemplate not reading the fields isn't the only problem I am guessing. Maybe it is a problem with the module itself. Will also post there, but please if you have any other suggestion :)
Comment #10
marcoBauli commented@jjeff: basically any other module that adds a form, widget or other "extra" to a node, is not rendered when activating Contemplate.
I tryed Userreview, Voting, Image and other diverse modules, but once i enable Contemplate all the other content added by these modules, and the forms or widgets necessary to submit these contents disappear.. :(
Any hint about how to make other contrib modules Contemplate-compatible would be greatly apreciated!
Thank you very much
Comment #11
jjeff commentedkiteatlas, please read #5 above.
Comment #12
marcoBauli commentedJJeff, #5 above makes much more sense to me today :)
i am actually playing with that and with
and seems i am getting things to work!
Just a correction to what i wrote before:
seems that both Contemplate AND default node-content_type.tpl.php files present the same issue out-of-the-box. So unless you are not theming your CCK content-types in anyway, you will require these snippets to show other contrib modules forms and outputs.
Thank you for precious help!
Comment #13
Coyote commentedjjeff: Thanks... you helped me figure out a fix for a totally unrelated but annoying problem I was having. :)
Comment #14
jrglasgow commentedIt seems that the problem has been fixed
Comment #15
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.