CCK and Imagecache

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'nodereference_autocomplete_access' was given in /home/mnnnecdq/public_html/drupalme/includes/menu.inc on line 452.
Friday, November 6, 2009 - 13:47

If you want to use images in you stories you may use an editor like Fckeditor or Tinymce. If you're running a newspaper site or a site where images is used frequently you should consider using CCK and Imagecache. To take advantage of this tutorial you should read the Imagecache tutorial, it's about how to configure and use the Imagecache features and the CCK tutorial.

This is basically the same as the CCK tutorial, creating a field and how it will be displayed when viewing a node.

1. Goto Content Management, Content-types. Add or edit an exsisting one. Create a new field and select type as file and widget is image.
2. Manage field, select the file extensions that a user can upload
3. In my case I need to upload several files to each tutorial. Save field settings.
4. Go to Display fields and select how the image will be displayed. If you have the Thickbox module installed you will automatically get the Thickbox display option in the Teaser and Full node display.
5. Here is one example from a newspaper I have created with Drupal. Images are linked to the node.
6. Same as above, images are linked to node.
7. Images can be used in jquery scripts, like this one, views carousel.

Comments

Add comment

The content of this field is kept private and will not be shown publicly.