Sharepoint 2013在上传文档后强制选择内容类型 [英] Sharepoint 2013 Making content type mandatory to select after uploading a document

查看:63
本文介绍了Sharepoint 2013在上传文档后强制选择内容类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


对不起,如果已经讨论过这个问题,似乎无法找到任何线索。


如何在将文档上传到库中或上传文档后提示用户选择正确的内容类型?


或者有没有办法在签入前强制选择内容类型?如果有设置工作流程的选项,我无权访问sharepoint设计器,只能查看OOB工作流程。



任何非常感谢帮助。

解决方案


< p style ="line-height:115%">根据您的请求,您可以修改内容类型描述以为用户创建提示。您可以从列表设置>更改说明。内容类型>名称和描述部分。





如果您想进一步自定义说明,例如更改文本的颜色,您将需要创建自定义列表表单来替换默认编辑表单。可以使用内容编辑器Web部件完成此操作。


从LIBRARY功能区中,单击表单Web部件,然后选择您要自定义的表单。





内容编辑器Web部件添加到页面,然后单击
修改来源添加以下代码:




< style type =" text / CSS"> 

.ms-metadata,。ms-descriptiontext {

font-weight:Bold; text-transform:大写;红色;

}

< / style>

"。ms-metadata,。ms-descriptiontext"是描述的ID。使用F12查找此ID。您可以参考以下文章查找ID:


https://docs.microsoft.com/en-us/previous-versions/ windows / internet-explorer / ie-developer / samples / gg699337(v = vs.85)



祝你好运,


Allen Bai


Hi All,

Sorry if this question has been discussed already, cant seem to find any leads on this.

How to prompt users to select the right content type either while uploading a document into library or after uploading a document ?

Or is there a way of making the content type mandatory to select before checkin ? If there is an option to set up workflow, I don't have access to sharepoint designer and can only look at OOB workflows.

Any help is greatly appreciated.

解决方案

Hi,

According to your request, you can modify Description of Content Types to create prompt for users. You can change the description from List Settings > Content Types > Name and description section.


If you want to customize the description furthermore, e.g. change colors of the text, you will need to create a custom list form to replace the Default Edit Form. It can be done with Content Editor Web Part.

From the LIBRARY ribbon, click Form Web Parts, and choose the form you want to customize.


Add Content Editor Web Part to the page, and click Edit Source to add below code:


<style  type="text/css">

.ms-metadata,.ms-descriptiontext {

font-weight:Bold; text-transform: uppercase; color:red;

}

</style>

".ms-metadata,.ms-descriptiontext" is the ID of the description. Using F12 to find this ID. You can refer to the below article to find the ID:

https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/samples/gg699337(v=vs.85)

Best regards,

Allen Bai


这篇关于Sharepoint 2013在上传文档后强制选择内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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