문제

SharePoint 2013 커뮤니티 사이트에서 작업하는 IM, IM 토론을 필터링하고 토론의 제목을 하이퍼 링크로 표시하는 사용자 정의 웹 파트를 개발합니다. 사용자 정의 WebPart 에 디스플레이 된 하이퍼 링크로 설정하는 토론의 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