Hi,

Not sure if this is the right place for this request. But I saw a tutorial video using Contemplate in D5, and when clicking on the Body template text area to edit the output, the current output was shown. It seemed very easy to find the really long css tags or bits you didn't like and re-write them in the body.

In the D6 version this same body template area is blank. I assume this is a feature change, but I can't find any guidance on how to use it now. So I now have to write the whole output from scratch? It just seems a step backward, but I'm sure it's not.

Could someone explain or point me in the right direction? Many Thanks

S

PS. Had good success affecting the RSS to make GeoRSS and generate Google map points, for one of my CCK types, although I still need to understand how to use the D6 version better.

Comments

911’s picture

I also have some trouble with the drupal 6 version of content templates. I had played around with drupal 5, the Content templates und amazon associate modules. This worked very well and I could easy modify my teaser and full node view.

Now I have a drupal 6 running on a local xampp and trying with the newest versions of content template and amazon modul but i cannot get it work. :(

Some variables effekt the output but the most are not rendered. I dont know why. I use the variables from teaser variables list for teaser output but it does not have any effekt.

Any Idea?

manne35’s picture

Hello,

with the 6.3 version of drupal
and
6.x-1.x-dev of the module

it is not possible to save the templates.
ALso the javascript make problems. - But this maybe is only a browser problem.

best regards
manfed

http://www.edelsteine.de/index.php http://www.chai-shop.de

MoonchildCH’s picture

I have recently (i.e. this week) newly installed the latest versions of both Drupal and the Content Templates module. I have uploaded ConTemplate twice (sites/all/modules/contemplate) and can't even get it to show up on the admin->modules pages so I can enable it. I've updated and 'cron'-ed and checked everything I can think to check.

Any suggestions on how I can at least get the module to where I can see something?

danepowell’s picture

I have also just installed Contemplate and noticed this behaviour- it is very frustrating and seems like it must be a bug rather than a feature change..

MoonchildCH’s picture

I discovered that once I visited the url {mysite.com/drupal/admin/content/templates} everything turned out fine. It even shows up in my Admin->Content Management menu now.

conniec’s picture

Category: support » bug
Priority: Normal » Critical

Ditto here on not showing up anywhere including modules. I didn't have the joy of seeing this after going to mysite/admin/content/templates.

Connie

najibx’s picture

hmm.. same here, getting tough time, not just contemplate, I guess Views2 too :-(
In 5.x/Views 1.0, select teaser style in Views, then checked "Affect teaser output" in contemplate. So the teaser will be what you put in the textarea. If this is more to views2 issue, i am sorry, but related to contemplate.

Thank you.

danepowell’s picture

I have noticed that this issue only appears on content types with CCK fields. For instance, the "Body Template" field populates just fine for Story and Page content types. However, it is blank for both of my content types that have CCK fields (Node Reference and Text fields, specifically)

jrglasgow’s picture

Try out the new release (6.x-0.16) and let me know if you are still having problems.

danepowell’s picture

I have installed 6.x-0.16 and am still seeing the same behaviour.

jrglasgow’s picture

danep

so you are saying that when you go to the create template page nothing is showing up in the body variables area? Is there a node of this type. This is the only way I have run into this problem.

danepowell’s picture

Correct. On a fresh install of Contemplate, I go to /admin/content/types/template. I click "Create Template" and expand the "Body" fieldset. If the content type has custom CCK fields, the "Body Template" field is blank. If the content type does not have CCK fields, the "Body Template" has <?php print $body ?>, as I'm assuming it should. All content types already have existing nodes of that type.

jrglasgow’s picture

danep,
Could you export your content type and upload a file. My problem is I have not yet been able to replicate the problem, which makes it harder to fix.

danepowell’s picture

StatusFileSize
new9.02 KB
new1.32 KB

I have attached two Content Type exports. The Page content type works fine and does not exhibit this behaviour. The Research Project content type exhibits the problem described.

danepowell’s picture

Actually I have recently added a content type with only Embedded Media fields (CCK), and <?php print $body ?> shows up just fine in the Body Template. So maybe it has something to do with specific CCK fields? Or it could just be complete coincidence.

triversedesigns’s picture

im having the same issue as well, nothing showing up, and not being able to do anything in views 2 aswell, although I get script showing up I dont get my cck fields...could be a relation?

danepowell’s picture

I have determined exactly how to recreate this problem. You must have two or more CCK fields on a content type. As near as I can tell it doesn't matter which two. If only one CCK field is present, the body field still fills correctly.

Quixote22’s picture

I am also getting blank content in "Body Template" field. I am also using CCK's.

tsvenson’s picture

Version: 6.x-0.13 » 6.x-1.0

Same here, empty textarea. Can anyone confirm this is how it works in Drupal 6 please.

jptavan’s picture

Title: Different behaviour between 5.x and 6.x » textarea are not pre-populated for some CCK content type

(change issue title)

mcornes’s picture

Is there any work around for this? How can I go about styling Custom Content Types - I was hoping to use Contemplate as my starting block. What is the course of action now? Will the CSS be embedded in the theme style sheet, I just have to use cssedit.app to do it all manually ?

Thanks.

danepowell’s picture

@jrglasgow: Have you been able to recreate this problem yet, following the tip in #17?

jrglasgow’s picture

@danep
I can you replicate this in the most recent DEV version?

danepowell’s picture

Actually the behavior seems to be fixed for me in today's 6.x-1.1 release. Thanks!

danepowell’s picture

Status: Active » Fixed

I'm going to mark this as fixed unless anyone objects.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

OnlineWD™’s picture

Version: 6.x-1.0 » 6.x-1.1

Have this issue, there's only print body and nothing to edit though some types are populated!