> > This is more or less what i did. Your code is just looking a bit tighter. > > Actually I want to list the attachments belonging to one article becouse i > > want to write all the text belonging to the images in the article and (if I > > find a way) also a thumbnail of the image. > > but now it seems that i can't find out anymore which article the image was > > attached to. > > I need a list of objects that have two pictures (thumb and big-one), two > > kinds of text (title and description), and all should possibly be handled by > > the user. For now it should work with (sub-)topics, that the user has to > > create. But i'm sure I'will need the article - attachment - connection in > > future. Do you have an idea? > > Just walk throught all subtopics/articles and look for topics/articles > having at least two attachments (named 'thumb' and 'big' for example) and > fields that you're using for title and description aren't empty. > > I'm wrong again? :)
You have never been wrong ! :) maybe i'm a little confused. right now �'m listing the subtopics of topic 'galerie'. In each one of those I look for attachments, and check if they have a '_small' in their name. these i use as thumb and link to their equal without a '_small'. Any Text i want to add to the picture comes from the topic description.This woks fine but: 1) I still cnnot list the attachments to an article as i intended in the beginning. I can attach them but listattachment won't return anyting. They are then attached to the topic of the article i attached them. strange behaviour? :) Do you know why? Articles just provide more possibilities for Text so I would prefer listing articles. 2) When i attache images to articles nadmin shows me a tumbnail. I suppose these thumbnails must be stored somewhere but i cant figure where and how i can show them. right now i have to make a thumbnail version o each image i want to attache, and then attache both - the original and the thumb to the topic / article. If i could use thumbnails that are produced while attaching it would be much easier. i hope i'm expressingmyself clerly . :) --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
