Pregunta

Estoy trabajando en el sitio de la comunidad de SharePoint 2013, estoy desarrollando un webpart personalizado donde filco las discusiones y muestre el título de las discusiones como un hipervínculo. ¿Cómo puedo encontrar la URL de las discusiones para configurarlo a los hipervínculos que se encuentran en el webpart personalizado

¿Fue útil?

Solución

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 bajo: CC-BY-SA con atribución
scroll top