Posted by ansorg on March 23, 2008 at 9:34pm
I started playing with drupal 6.1. The book feature seems perfect for what I want to do: write documentation. But I also need to add images to those book pages.
I have the Image 6.x-1.x-dev module installed. But with that I can only add one image to a page. Or am I doing something wrong?
Could not find another 6.x ready module to deal with images - is there currently no way to do that?
If I really need to go down to 5.x - what would be a good addition to the books to add multiple image support?
thanks
Comments
=-=
using 6.1 you would have to hardcode them to get more then one image inside a node. Fact is image.module takes an image and creates a node with it, so you would probably want to avoid images being made nodes themselves.
img_assist.module may be an option but I do not know it's status for Drupal 6.x
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
same question, some options
I posted a similar question some hours ago:
http://drupal.org/node/237786
I also made some suggestions, but none of them is perfect. Actually afaik there used to be a patch for the image_attach module.
For me, a way to display thumbnails for images that are children of a book page would be perfect.
Well, as I said I wrote quite a lot about this in my previous post.
consider img package module
i'm using img package module on d6.1 (it's awesome, so yeah, i'm shilling for it ;)
of particular interest for your needs:
1) supports multiple image uploads and image captions/custom titles (e.g. replace img4.jpg with 'my house')
2) supports advanced placement throughout a page (e.g. using simple [img:1] tag you can put first attached image where you want on page, then use [img:2] for second and so on...
3) control thumbnails by content type (so you may want little or big thumbs on the documentation, not sure, but you have choices)
i'm using it myself: http://drupal.org/project/img_filter
also helped the mod dev by writing up a bunch of documentation for him to help users implement: http://drupal.org/node/230614
........................................................................
i love to waste time: http://twitter.com/passingnotes
Close, but not quite there
thank you zilla,
that looks like what I need. I installed it and went through the documentation but I have probably missed something: the thumbnails don't show on the page (although you get the full images in lightbox). My little test project: http://x-plane.ansorg-web.de/content/new-eclipse-c-plugin-project
I really don't understand what's wrong: one of the thumbnails should be
http://x-plane.ansorg-web.de/system/files/img_thumbnails/21_60.png
and, looking in the file system, there is an image "21_60.png" in the folder "img_thumbnails" in "files"
What have I missed?
not sure what's causing that- try img package forum
you may want to post in img package - the dev is veyr responsive and there are several folks over there who may know what the problem is...could be a lightbox issue, could be a cache issue (e.g. try manually emptying that cache and it will automatically regenerate thumbs, maybe that will fix it?)...
........................................................................
i love to waste time: http://twitter.com/passingnotes
RTFM :)
after doing that again I realized my error:
# This package doesn't work with the private download method.
now the Thumbs get shown. Unfortunately the get generated too large. Will head over to the module section now
thank you
What I've found to work well
Right now, since the image.module and the CCK imagefield or any of the good MCEs aren't ready for D6, I am using Drupals Core Upload module to upload multiple pictures. And along with the awesome modules Img_Filter which i think is called imgage package now and the formdefaults filter I am getting very good results. the img package automatically looks to see if there are any image files associated with the node and if there is, image package aligns it to the user's specification as specified by a field in the form. there is also a site-wide default and comment settings. I think a few more upgrades will make this a very powerful module for D6. The formdefaults.module is the best tho. You can edit descriptions, titles, and weights of forms on the fly and on a per content type basis. I am using it to customize the Attachment field and Images field for every form, on the form's page so each form is totally customized. So I would recommend: D6 core Upload.module, Image Package.module http://drupal.org/project/img_filter, and Form Defaults.module http://drupal.org/project/formdefaults.
hah! using the same thing - you may also love stringoverride
also using this - and for the same thing - and i'm also using string override to change that system level text that form can't get to (e.g. changed 'add new comment' on my site to 'reply') - you may want to check it out, for d6 as well...
........................................................................
i love to waste time: http://twitter.com/passingnotes
Re: Using FormDefaults to allow multiple images
Referencing imagefilter and formdefaults - however I have yet to find a way to allow for multiple image uploads. I am wanting to allow for multiple profile pictures.
Also - has anyone come across something similar to advanced profile for 6.1 - or do I need to create multiple field from scratch?
Thanks,
Robert
i'm doing this with content profile and img package on d6.1
cattech - i'm doing this now. i've installed 'content profile' module, created a new content type called 'profile' and set it to be used as the 'content profile' - users only to get to create/edit ONE of these (per user) by default, so they can constantly 'update' with new pictures via img package
a user on my site can create a profile, attach 20 pictures, and i've set thumbnails for this content type small (via img package controls) so when you click one, using also lightbox2, the images in teh node are all auto-grouped into a popup gallery (each image can have a caption too!) and there are little arrows to go back and forth through the pics...
it was very, very easy to do. if you need granular how-to details just let me know
........................................................................
i love to waste time: http://twitter.com/passingnotes
Ah i didn't know you wanted
Ah i didn't know you wanted multiple profile images, this is a bit of a tricker beast, that, I have actually stayed away from. Drupal uses a separate primitive Picture system for profile associated images. By default a user is only able to have 1 user picture at a time. Perhaps there are modules or PHP codes to override this, I just haven't found them. What I think might work (for now), and as touched on below, is to have a User picture which can be adjusted from the user's Account and a user's Image Gallery: created by making a custom content type (called User Pictures or something like that) with attachments enabled plus the Content Profile Module to make this content type visible in the user's profile plus Image Package module which will display the user's images that were uploaded via attachments (and as an added bonus can be viewed via Lightbox, fancy). Content Profile shows a teaser in the user's profile so you can use Image Package's teaser threshold to say how many images will show on the profile page. And the nice thing about Content Profile is that it can be added to any content type so you can have any number of content types that the user can fill out and have show up on their profile page (see below for styling options). Downside is there would be no feature to allow a user to make an image uploaded via a content type their use picture, like how in facebook there is the option "Make Profile Picture." A minor in convenience for the user.
As far as advanced profile, it might be a while before that is up and running as it (as of D5) depends on Views, Panels, and optionally Bio or Nodeprofile to work. For the time being, you may have to add fields from the core profile section or you can use Content Profile(http://drupal.org/project/content_profile) plus CCK (http://drupal.org/project/cck) (not recommended yet since CCK is not officially released yet and is still buggy) to operate like Nodeprofile or Bio, but there is no Advanced profile like setup for D6 yet. But, either of these methods above, can be performed in association with a custom page layout to get an Advanced Profile like feel (or better). If you make a page-user.tpl.php file in your theme directory, you essentially override the page.tpl.php file for all user pages. How the page-user.tpl.php file is recognized: page(www.mysite.com/)-user(user/).tpl(template).php(php file extension). If you set up the page-user.tpl.php with unique div ids, div class, etc names you can style both your page.tpl.php and page-user.tpl.php or any others from a single style.css (the benefit of this is: more consolidated theming and less directories for the browser to search through, meaning faster loading time and simpler workflow!). For more info on this see: http://drupal.org/node/104316. Keep in mind that this would override a user's edit page as well. So you may need to make a page-user-edit.tpl.php (You can simply duplicate the page.tpl.php and rename it or make a custom one or even make a default edit page for all edit pages all together page-edit.tpl.php). Also, as far as I can tell URL Aliases and Pathauto are not used when Drupal calls the -.tpl.php files so the original name of the URL must be used in the file name.
Hope this answers some of your questions
-Nick
...
There are instructions on using the core upload module for images.
http://drupal.org/node/176828
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
Book content alignment
We are using fckeditor to add images to book pages. That works well but the book navigation is floating below the page text but not below the images. The book navigation displays in the middle of the page if the image is longer than the text. It should float below the complete page content.
We can make it foat correctly by inserting paragraphs but that is not a reasonable approach.
Thanks
Emery Gordon