Tama Pugsley <[EMAIL PROTECTED]> wrote:
> >
> >
> >can you someone help me? i'm looking for a function that will give me a
> >list of attachments attached to a page.
> >
> Example
> <?php
> $article = mgd_get_article(123); # article with id 123 must exist.
> $list = $article->listattachments();
> while($list->fetch()) {
> echo "name: " . $list->name . "<br>\n";
> }
> ?>
Just a note :
If You want to get attachments from pages and use $object->listattachments();
function , do not forget that midgard has very magic issue which allows serve
attachments attached to pages directly by its names.
So if You attache file "my_image.jpg" to page named "somepage" You may simple call
that with <IMG src="/somepage/my_image.jpg">.
Piotras
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]