سؤال

أنا أعمل على موقع مجتمع SharePoint 2013، IM قم بتطوير WebPart مخصص حيث أتصفية المناقشات وعرض عنوان المناقشات كعلى ارتباط تشعبي. كيف يمكنني العثور على عنوان URL للمناقشات لتعيين الارتباطات التشعبية التي يتم تمريرها في WebPart مخصص

هل كانت مفيدة؟

المحلول

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