I'm new to midgard as well, but I would think something like $file=mgd_get_attachment($attachment_id); echo($file->location);
can't say that I've tried it though. ----- Original Message ----- From: "Oliver Albers" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 28, 2003 4:15 PM Subject: [midgard-user] Retrieve Attachment Filename > Hi, > > I'm pretty new to midgard and projects based on it. I like what I've > seen so far and am building some basic pages to learn it. > Right now I'm trying to write some PHP code creating a graphical > button for links. I'd like the user of this code (me, basically ;) to > be able to just attach the background image of the button and a font > file to the page creating the buttons and then passing the text of > the > button as a parameter. Most of that stuff works. I just have to > overcome one problem: > Getting the background image from an attachment is working by using > http://domain/sitename/etc/NAME. PHP is doing all the magic for me > there. But for the TTF Font file PHP won't accept URLs but only local > files. Plus I'd like to be able to access the graphics directly as > that would make the page a little bit more efficient :) > So I need to know how I can get the full file name of an attachment. > Can anyone help me with this? > > Thanks in advance, > Olli > > > > > > --------------------------------------------------------------------- > 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]
