Pergunta

Estou trabalhando no site da comunidade do SharePoint 2013, estou desenvolvendo uma rede personalizada onde filtro as discussões e exibindo o título das discussões como um hiperlink. Como posso encontrar o URL das discussões para configurá-lo para hiperlinks que são descarregados na WebPart personalizado

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top