I'm sure this is something basic, but I can't find anything in my search. I set up Node Gallery with a few galleries, and some photos. What's the best/easiest way to not only add one of those to a Story, but also have it scale differently than normal? Do I just figure out what the file path is, and copy the file path into the story, or since I want it scaled differently than the normal Imagecache presets included, do I create a new imagecache preset, set up a new field in the Story content type, and go from there? I'm trying to avoid having to upload the file multiple times and hardcoding different paths depending on if I want it to scale based on one imagecache preset, or another. If I set up the new field in the Story content type, I'm still unclear as to how to get an existing image from node gallery since I tried doing that, and it just gives me an upload dialog box, instead of letting me pick something that's uploaded already.
Comments
Comment #1
scroogie CreditAttribution: scroogie commentedHello mhedstrom,
there are different ways to do this depending on your requirements. Personally, I use the following:
- if I want to be able to let the content editor position the image freely in the article, for example by using a WYSIWYG editor, I use Filefield sources together with Insert module. For browsing the existing files you can use the Wysiwyg ImageField, which provides a browser for filefield sources. You would then indeed define an additional imagecache preset. I use this for full page content mostly.
- if I want the content to be consistently styled, i.e. the image is always at the same position, e.g. for news entries, I use a nodereference field and constrain it to the node_gallery_image content type. You can use for example the Nodereference explorer for browsing the nodes. I personally use a version of img_assist that I customized to node reference browsing and Views display a long time ago. Unfortunately the maintainer didn't accept my patches back when I proposed them, so this never went into the module.
There are even more ways to do this, such as the Node Reference/Embed Media Browser (nrembrowser) or the Search and Reference function of the Node Relationships module, but I personally never used them.
If you evaluate the solutions, it would be great if you contributed some documentation about it.
hth
scroogie
Comment #2
scroogie CreditAttribution: scroogie commentedSomething for the recipes section?
Comment #3
justintime CreditAttribution: justintime commentedMoving to HowTo's.