SharePoint 2013: Obtener URL de discusiones en la lista de Discusiones
-
09-12-2019 - |
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
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
No afiliado a sharepoint.stackexchange