> > > If you want show all these images, you can use something like:
> > >
> > > <?php
> > > $list = $article->listattachments();
> > > while($list && $att = $list->fetch()) {
> > > echo "<img src='$mgd_root/images/$att->id'>";
> > > }
> > > ?>
> > >
> > 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
>
> that code lists all article's attachments
Sure, i abused $article for mgd_list_topics();
> > 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.
>
> compile php with GD support
> excellent for image manipulating
I suppose nadmin allready produces thumbnails, when you attache images, i
just can't figure where they are stored and how to get them out again.
>
> > but now it seems that i can't find out anymore which article the image
was
> > attached to.
>
> used nadmin?
I guess nadmin attaches article-attachments to the topic of this article?
And how do Asgard or Aegir solve this problem.
>
> > 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?
>
> All I think now is attachment name for title and article's parameter to
store some description.
You mean: mgd_get_article_by_name($attachment->name); ?
Georg
>
---------------------------------------------------------------------
> 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]