社区网站的Topics.aspx页面中的“发送至”选项? [英] Send To option in Topics.aspx page of community site?

查看:69
本文介绍了社区网站的Topics.aspx页面中的“发送至”选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在"赞"链接前面的 讨论区/SitePages/Topics.aspx页面中引入链接,通过点击"发送到"打开Outlook发送电子邮件主题的链接客户端并将讨论主题的链接放在
吗?

Is it possible to introduce a link in Discussion's /SitePages/Topics.aspx Page just in front of 'Like' link to send the link of the Topic in email by clicking 'Send to' which opens outlook client and puts the link of the Discussion Topic in it?

类似的帖子
https://social.msdn.microsoft.com /论坛/ sharepoint / en-US / e1a0dda8-03ef-4a0b-8927-31ff13d349b5 / send-to-option-in-list-itemsdocument-items?forum = sharepointdevelopment
做同样的事情,但在最近的观点讨论列表。

A similar post https://social.msdn.microsoft.com/Forums/sharepoint/en-US/e1a0dda8-03ef-4a0b-8927-31ff13d349b5/send-to-option-in-list-itemsdocument-items?forum=sharepointdevelopment which does the same thing but at Recent View of the Discussion list.

推荐答案

您好,

请访问Topic.aspx页面,编辑页面,将下面的代码添加到脚本编辑器Web部件中。

Please go to Topic.aspx page, and edit page, add the code below into a script editor web part.

<script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", function() {
	SPClientTemplates.TemplateManager.RegisterTemplateOverrides({
	  OnPostRender: function(ctx) {		
		var rows = ctx.ListData.Row;
		var email="someone@outlook.com";
		var subject="Share Item";
		var body=window.location.protocol + "//" + window.location.host+rows[0].FileRef;


(" li [id * ='likesElement']")。 before("< li class ='ms-comm-cmdSpaceListItem'>< a class ='ms-secondaryCommandLink'href ='mailto:" + email +"?Subject =" + subject +" & body =" + body +"'target ='_ top'>发送至< / a>< / li>");
}
});
});
< / script>
("li[id*='likesElement']").before("<li class='ms-comm-cmdSpaceListItem'><a class='ms-secondaryCommandLink' href='mailto:"+email+"?Subject="+subject+"&body="+body+"' target='_top'>Send to</a></li>"); } }); }); </script>






最好的问候,

Dennis


这篇关于社区网站的Topics.aspx页面中的“发送至”选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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