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

scroogie’s picture

Hello 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

scroogie’s picture

Version: 6.x-3.0-alpha2 » 6.x-3.x-dev
Component: User interface » Documentation
Category: support » task

Something for the recipes section?

justintime’s picture

Component: Documentation » Howto/FAQ/Example
Status: Active » Fixed
Issue tags: -story

Moving to HowTo's.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.