Last updated December 17, 2008. Created by sirkitree on December 17, 2008.
Log in to edit this page.
Since Smackdown operates on a content type with node references, we can use CCK's UI to do most of the work here for us. The following is an example recipe for the most common use of Smackdown; voting on photos.
For this example, we'll first create a standard photo node using Image Field module.
- Install Image Field and then create a new content type called Photo. [1] [2]
- Add a new field to this content type called 'photo'. [1] [2]
- Edit your smackdown content type and configure the first Node Reference field.
- Check Photo as the content type to be referenced. [1]
- Ditto for your second Node Reference field.
Now we'll setup some basic ImageCache presets for use with out photos. This will help when we pull in referenced photo node through a smackdown.
- Install ImageCache along with it's associated ImageCache UI and then create a new preset called photo_155x200. [1]
- Choose 'Scale' and set the width to 155 and the height to 200. [1]
- Now we want to edit our display settings for our Photo's field and set them to our new ImageCache preset. [1]
- Edit your smackdown content type again, and let's set the display setting here as well so that we pull in our referenced node's teaser view. [1]
Now you can create some photos, and then reference them when you create your smackdown. The result (with just minimal theme setting changed and styling) can look something like this: [1]