|
Home > Archive > Microsoft Content Management Server > November 2004 > Retreive the posting that contains my pdf
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Retreive the posting that contains my pdf
|
|
| Jean-Yves Ceunen 2004-11-04, 5:48 pm |
| Hi,
I have a template with a singleattachment placeholder. I publish a posting with a PDF in attachment.
My MCMS website is indexed by MondoSearch. When I make a research on the PDF content, Mondo give me a link directly to the PDF File. My question is : how can I retreive the posting where the PDF is attached.
Thanks in advance,
JY
| |
| Stefan [MSFT] 2004-11-04, 5:48 pm |
| Hi Jean-Yves,
MCMS does not provide methods to do this. Please check if Mondo Search
indexes also the Referer property - then you could use this referer property
to identify the embedding posting.
If the pdf is a local attachment, then you can use the following method to
get the posting:
- extract the GUID from the URL
- do a Searches.GetByGuid(guid)
- cast the result to a posting object and then use the Url property to get
the URL.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"Jean-Yves Ceunen" <jean-yves.ceunen@dad.be> wrote in message
news:uzOeFalwEHA.2316@TK2MSFTNGP15.phx.gbl...
Hi,
I have a template with a singleattachment placeholder. I publish a posting
with a PDF in attachment.
My MCMS website is indexed by MondoSearch. When I make a research on the PDF
content, Mondo give me a link directly to the PDF File. My question is : how
can I retreive the posting where the PDF is attached.
Thanks in advance,
JY
|
|
|
|
|