Вопрос

Я работаю над сайтом общественного пользования SharePoint 2013, я разрабатываю пользовательский веб-сайт, где я отфильтрую дискуссии и отображение названия дискуссий в качестве гиперссылки. Как я могу найти URL-адрес дискуссий, чтобы установить его на гиперссылки, которые отображаются в пользовательском веб-панели

Это было полезно?

Решение

Hi I found out the answer for this question. All the urls of the discussions are stored in the discussions list but we can access only through the code we cannot display that column in any views. I'll share my code below

foreach (SPListItem post in oSpListItemClnPost)
{
    String postUrl = post["URL Path"].ToString();

    String url = oSpSite.Url;
    url += "/SitePages/Topic.aspx?RootFolder=" + postUrl;
}

So string url will be the final url of the discussions in the discussions list.

Thank You

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top