Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
CCK (to make node types like "news" or whatever)
imagefield (to add images to CCK node types)
content templates (contemplate) (to make customised layouts and teasers)
imagecache (to generate thumbnails on the fly - if you want a different size thumbnail later on, you just change a couple of settings and it updates every old thumbnail for you.
Took a while to get it all working together, and still playing around with it.
imagefield, imagecache, and cck. I orginally had contemplate installed, which was invaluable for learning how to theme. While troubleshooting a clean urls/relative paths issue, I moved to tpl files. Right now I'm attempting to theme views for the first time.
First I configured imagefield and imagecache. This can be tricky as these modules are still pretty young. See link. I have primary and secondary imagefields, where primary is restricted to 1 image and secondary is multiple values, so as to gel with current views.module limitations. I have 3 profiles in imagecache that scale. Haven't tried crop or resize yet.
I then made a node-content_my_cck_type.tpl.php and put this in it. You might have guessed that I'm building an object catalog :) Hope this helps.
It's pretty neat way and everything is ok except I really don't know how to insert thumbnail image into template... And as far as I see, there is not example in Variables section, only for full-sized picture... Please can you help a bit?
Comments
I'm currently doing this
I'm currently doing this with a combination of:
CCK (to make node types like "news" or whatever)
imagefield (to add images to CCK node types)
content templates (contemplate) (to make customised layouts and teasers)
imagecache (to generate thumbnails on the fly - if you want a different size thumbnail later on, you just change a couple of settings and it updates every old thumbnail for you.
Took a while to get it all working together, and still playing around with it.
i would love the know how to
i would love the know how to do this too
I did this with..
imagefield, imagecache, and cck. I orginally had contemplate installed, which was invaluable for learning how to theme. While troubleshooting a clean urls/relative paths issue, I moved to tpl files. Right now I'm attempting to theme views for the first time.
First I configured imagefield and imagecache. This can be tricky as these modules are still pretty young. See link. I have primary and secondary imagefields, where primary is restricted to 1 image and secondary is multiple values, so as to gel with current views.module limitations. I have 3 profiles in imagecache that scale. Haven't tried crop or resize yet.
I then made a node-content_my_cck_type.tpl.php and put this in it. You might have guessed that I'm building an object catalog :) Hope this helps.
It's pretty neat way and
It's pretty neat way and everything is ok except I really don't know how to insert thumbnail image into template... And as far as I see, there is not example in Variables section, only for full-sized picture... Please can you help a bit?
Without CCK?
I'm also trying but without CCK (with standard page nodes). Has anybody found a way to achieve this?