1

My customer has site collection with a vast amount of subsites, which in turn contain documents, lists and the like. Now my customer wants to find for example a document from any of those subsites, but instead of having the URL to the documents only the URL of the containing subsite should be displayed. Is there a build-in way of doing so or do I have to create a Display Template and use custom script to achieve this goal?

Thank you for your help.

1 Answer 1

2

Yes, use the "SPWebUrl" managed metadata property to get the subsite url. In the display template instead of link url use above mentioned property.

2
  • Thank you for your answer. If I understood you correctly there is no other way than to define a custom Display template?
    – bash.d
    Commented Oct 25, 2016 at 9:10
  • creating new display template will be the best solution. Commented Oct 25, 2016 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.