Answered CoreResults - Building a url to the list item properties

  • 2012年3月13日 20:31
     
     

    I am building a custom XSL for coresults so I can show the meta data for documents in a tabular format.

    This works well.

    I have a link working to take me to a document.

    I want to get a link working to take me to a documents properties view.

    e.g.

    http://server/Documents/Forms/DispForm.aspx?ID=156

    Does anyone know if there is a crawled property which will give me this URL or allow me to generate it.

    I have found that the ID is ows_ID but I cannot see crawled properies that will give me the rest.  Since my documents are in folders there is no crawled property that gives me http://server/documents to append the rest onto in XSL.

    I can only get http://server/documents/folder1/folder2 etc.

    I don't really want to do string parsing in XSL since this is prone to problems if the folder depths change etc.

    Any ideas ?

全部回复

  • 2012年3月14日 18:51
     
     已答复

    Hello Dave,

    I have a question, and perhaps you have answered your own question.

    Do you see a need to go deeper into the folder structure to use the /forms/DispForm?ID=

    I believe each document is identified by the ows_ID and you can reference each file regardless of the folder structure by using the

    http://server/Documents/Forms/DispForm.aspx?ID=156  structure.

    Are you looking for a way to find the http://server/Documents/  part?


    If this helps you then please mark the post as helpful. If this answers your question then mark it as the answer.

  • 2012年3月20日 21:16
     
     

    Hello Dave,

    I have a question, and perhaps you have answered your own question.

    Do you see a need to go deeper into the folder structure to use the /forms/DispForm?ID=

    I believe each document is identified by the ows_ID and you can reference each file regardless of the folder structure by using the

    http://server/Documents/Forms/DispForm.aspx?ID=156  structure.

    Are you looking for a way to find the http://server/Documents/  part?


    If this helps you then please mark the post as helpful. If this answers your question then mark it as the answer.


    Thanks for this.  I will try, it was not something I considered since when you use the UI the folder is included in the URL.