Maybe have a look at
info.magnolia.module.dms.beans.Document.getLink()?
Cheers
Boris
On 28.06.2006, at 19:18, goodusername wrote:
Unfortunately, getHandleWithDefaultExtension() is no more available
in 3.0, at least not in the Content class
David Smith wrote:
Have you tried getHandleWithDefaultExtension() ? Admittedly the
docs for this method are weak and I'd have to look at the source
to know if it takes any mime-type attributes into account. But
there is always trial and error.
The full javadocs are available from each version's respective
developer pages:
Version 2.1.5 - http://magnolia.sourceforge.net/21/index.html
Version 3.0RC2 - http://magnolia.sourceforge.net/30/index.html
--David
Ben Brock wrote:
getHandle() works and returns "contentParagraphs/00/document", but I
need "contentParagraphs/00/myfilename.ext"
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: 28 June 2006 12:37
To: [email protected]
Subject: Re: [magnolia-user] getHandle() question
Are you having problems with this? Are there errors? I don't
see any
problems with this given the limited amount of info you've provided.
--David
Ben Brock wrote:
Should I not be using getHandle() to return the actual
filename.ext of an uploaded file?
I'm trying to get the full path to an uploaded document using the
following:
String handle =
Resource.getLocalContentNode(request).getNodeData
("document").getHandle
(
);
String docpath = contentPath+handle;
(Feel free to point me to the document explaining how this works
if it
exists.)
Thanks in advance,
Ben
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------