自定义讨论列表 [英] Customize Discussion List

查看:83
本文介绍了自定义讨论列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建"明信片"通过自定义讨论列表,生成一个新视图。


我在讨论列表中添加了其他列,以存储每张明信片的图片以及另外两列以满足特定需求。


允许用户对任何PostCard进行回复和评论(讨论主题)。


通过CSOM或SOM自定义讨论列表的最佳方法是什么?


在CSOM和SOM中,我都有以下问题,



  • 更新讨论/消息
  • 喜欢或不喜欢 
  • 树视图
  • 喜欢的数量 
  • 评论数量

请帮助我选择正确的对象模型并实现上述问题。


提前致谢。











 


Anandhan.S记得在适当时"标记或建议作为答案"或"投票为有用"。

解决方案


我认为你可以使用前端框架(angular / bootstrap)来构建"PostCard"的自定义表单显示/评论/等等。


以下是一些示例客户端api的链接供您参考。


通过SharePoint客户端对象模型使用讨论列表(每个讨论/消息实际上是一个listitem):


https://blog.vgrem.com/2014/01/20/working-with-discussions-list-via-sharepoint-client-object-model/


喜欢和不同于使用Javascript的更新列表项:


http://sharepointclouds.blogspot。 com / 2014/12 / like-and-different-update-list-item-using.html


为了计算数量,你可以从LikesCount 中检索。


http://wp.sjkp.dk/sharepoint-2013-add-like-functionality-to-publishing-page-with-javascript/


< span style ="font-size:10.0pt;行高:105%; FONT-FAMILY:"宋体",无衬线;颜色:#2F5597">最好的问候,



Am trying to create "PostCards" by customizing Discussion list, resulting in a new view.

I have added additional columns in Discussion list to store pictures of each postcard and two more columns for a specific need.

Users are allowed to Reply and Comment on any PostCard(Discussion Topic).

What will be the best approach to customize discussion list either through CSOM or SOM?

In both CSOM and SOM, I have following concerns,

  • Update a Discussion /message
  • Do Like or Unlike 
  • Tree View
  • Number of Likes 
  • Number of Comment

Kindly help me out to choose right object model and to achieve the above concerns.

Thanks in Advance.


 

Anandhan.S Remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

解决方案

Hi,

I think you could use front-end framework(angular/bootstrap) to construct custom forms for ‘PostCard’ display/comment/like etc.

Here are some links with sample client side api for your reference.

Working with Discussions List via SharePoint Client Object Model( each disscussion/message is a listitem actually):

https://blog.vgrem.com/2014/01/20/working-with-discussions-list-via-sharepoint-client-object-model/

Like and Unlike update list Item using Javascript:

http://sharepointclouds.blogspot.com/2014/12/like-and-unlike-update-list-item-using.html

To get like count, you could retrieve from LikesCount.

http://wp.sjkp.dk/sharepoint-2013-add-like-functionality-to-publishing-page-with-javascript/

Best Regards,

Lee


这篇关于自定义讨论列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆