Blog of Attomsoft Inc.
ImageCache and ImageField on Drupal 6
I’ve tried to theming a cck node type with image filed, but failed display the image with them(‘imagecache’,'thumbnail’) hook.
Struggling for more than 4 hours, searching, reading,trying and again and again. At least, I learned more about how to theming Drupal node.
I found several questions related my situation, but not exactly. Some solutions look like hitting the point, and give great tips on using CCK and ImageCache.
1. ImageCache module creates preset file just on requesting, that means, the files will not be created until a request to that file.
2. Always check folders’ permissions related to uploading.
3.Devel module is great tool for themers.
4. Don’t forget clear cache after tpl.php files modfied.
At last, I figured out my way to the problem: I just knew littleĀ about how to use imagecache module and point #1 above.
ImageCache works on “preset”, and each “preset” contains some actions such as re-size, crop, saturation, etc. A preset without any action can’t work properly. I didn’t know that and just added a preset named “thumbnail” then waiting magics.
So the trick to my problem is just create actions in the preset and ImageCache will do the others.
Drupal is great, the contributors are great, but it’s too heavy for small-mid sites, the learning curve is too long for normal ppl.
For small to middle sized sites, I will suggest ModX or WordPress, maybe Joomla is ok too.
| Print article | This entry was posted by Sean on March 17, 2010 at 10:32 pm, and is filed under Drupal. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 1 year ago
Thanks for sharing, I found this story while searching for mp3 downloads, useful comments and good points made.
about 1 year ago
Thanks for your comment.:)
Sorry for my poor English, I’ll try my best to make things easy to understand.
about 1 year ago
This post solved a 45 minute problem. Thanks.
about 1 month ago
mulberry sale