Greetings,

Contemplate is running just fine along with CCK, but I have one annoying problem.

I create two new Content Types : that I call "Overview_Page" and "Custom_Page". Then I create a Template for both of them.

In the "Custom_page", I change the body (and check "Affect body" box) as well as the teaser (checking box too).

In the "Overview_Page", I change the body (+check box) and put some code with which I load a node object in a "$item" variable. My code (that I won't detail here) seems OK, since using e.g. "echo $item->body", gives the correct body from that "$item". This seems to work with any other property of that "$item" , such as $item->changed, etc.

BUT it seems not to work with $item->teaser. Everytime, I get the "default Drupal teaser", i.e. the first x lines of the node content (the ones you can break with

tag or something).

Weirdest thing is that when I try to change the teaser of the page, on the right pane I get an example of a node of that type, with all available variables, and when I go check the $body->reaser ... well it gives me the one I customized previously !!

So to sum up, the teaser variable is somewhat correctly affected by my customization in Contemplate, and when Contemplate itself goes check it, it's just fine. But when trying myself to access it from another node, it isn't working, while all other variables I checked, are.

Comments

spino’s picture

I've been experiencing probelms as well. The checkboxes on the template editing page are not picking up the information from the database so when re-saving a template they all reset to not being clicked. This might be a quick fix, as I only noticed this behavior with php5.

Bix’s picture

I forgot to notice that I am experiencing this problem with php4 and that my checkboxes remain checked ... this just seems to be ineffective

jrglasgow’s picture

Status: Active » Postponed (maintainer needs more info)

is this problem still occurring in the latest release?