So I've been trying to find a great image gallery solution and have been messing around with the CCK/Contemplate/Views version provided in this great tutorial (http://www.primalmedia.com/blog/building-better-drupal-photo-gallery). Everything is going exactly as planned except for generating the "list" of galleries, which is really just a view filtering & listing the custom teasers made in contemplate.

The instructions say: "Go to Views and create a block and select Teaser list. Select the node type in the filters and sort whatever way you want."

Well, I've created a block, am filtering by type (Image Gallery) and Published (yes) and the only Field I have is Node:Teaser. However, it keeps outputting my body text in place of the image that its supposed to. If I view the teasers from my front page they look like they're supposed to (how they're configured in contemplate) but views doesn't seem to want to recognize the contemplate versions. In fact, I can't get it to output any images at all, only text. I have since removed the "Body" field from the CCK Type, and now I get nothing. When views spits out my "gallery" all I get is "teaser: teaser:" ("teaser" being the label I gave the teaser field so I could see what it was doing). So the filters are working right (I only have 2 galleries) but something is screwy on the output side

It feels like there is something very basic I'm missing here, but I've been staring at the screen for hours now and can't seem to figure it out, so I thought I'd ask people far smarter than I.

Thanks so much.

Comments

ivanmilos’s picture

I followed the same tutorial and just had the same problem. The tutorial is written for drupal 5, so some instructions don't apply. You don't have to create a contemplate for the teaser at all. In Views 2 don't pick the "Node:Teaser" field, but the CCK field you use to store images in the gallery i.e. "Content: Photo (field_photo)". Configure the field to show only one value (otherwise it shows all images in the gallery) and choose the appropriate display format (thumb image linked to the node).

Regards.

dkane’s picture

Brilliant. Thank you.

I figured it had something to do with having to include the images in the view, but couldn't let go of having to include the Teaser, which is where I got stopped up.

Very much appreciated.

Anonymous’s picture

Is there no way to use a contemplate teaser as Views 2 Node: Teaser? How can we use contemplate in Views?

Because I'm trying to create a custom styled teaser, with multiple CCK fields, inside a Views Block. If I can't use contemplate for this,... then what are the options left?

Can we create custom views templates instead, then?

neofactor’s picture

Just curious... Any progress on this?

I am trying to use a VIEW in "NODE" mode... and told to display as teaser... that way I could use contemplate teaser to display the output.

BUT... the teaser output is not like a normal node output in that the TITLE

is already sent... and not a field you control directly via PHP variables.

I am trying to have the entire results be sent to a page that I can manage the output without touching an actual .tpl file.

Any ideas here?

crunk’s picture

Here is a comment from merlinofchaos on this subject: http://drupal.org/node/323487