By Cygon on
I'm trying to set up Drupal 7 for a personal website & blog. I want the ability to attach images to my "blog post" content type that I can then display inline in the text of my blog posts.
So far I have created a "Blog Post" content type and used the Fields UI module to add an image field to this content type with "Number of values" set to "Unlimited"
I can now attach images to my posts and they're neatly listed below the blog post with thumbnails, but I'm not completely happy about this setup yet:
- To display images inline, I would have to manually insert <img /> tags into my articles. No big issue, I guess eventually someone will come up with a module that automates this.
- All of the images for a content type are dumped into the same folder. For the sake of maintainability, I'd like to have sub-directories either one per node or like WordPress, one per month (a la "2011/03/x.jpg")
Am I on the right path or should I use another approach?
Are there any modules for Drupal 7 able to address the two issues above?
Comments
Use the Insert module
No need to manually insert img tags. The awesome Insert module will allow you to plop your uploaded images anywhere in your node body field and can apply Imagecache presets to them, too, and a few other cool tricks as well. Works well with WYSIWYG editors, too.
http://drupal.org/project/insert
Excellent! That completely
Excellent! That completely takes care of my first issue -- and them some.
Now only the file organization issue remains. I suppose I could change the file system path for the content types each month as long as I store images in the public file system if no module is available that can mangle the path for me a bit :)
I'm not sure about file
I'm not sure about file organization, but I'd love to be more organized with my image uploads, so I'll be on the lookout for something to help here, too. :)
Image Fields Tutorial
There's an excellent video tutorial for this issue. Just visit the link below
http://www.leveltendesign.com/video/drupal-7-tutorial-image-fields
file field path module
For anyone still looking for an answer, the "file field path" module is what you need.