当前位置: 代码迷 >> SharePoint >> 关于 content type 联系关系自己定义的aspx
  详细解决方案

关于 content type 联系关系自己定义的aspx

热度:116   发布时间:2016-05-02 07:02:15.0
关于 content type 关联自己定义的aspx
本帖最后由 u012825833 于 2014-10-17 17:26:46 编辑
请问我自己做了个页面(aspx),有一些处理。 在SharePoint Designer中我怎么和content type的form关联?
------解决思路----------------------
在SharePoint designer中改过列表的form,还有没有改过content type的form,还真没有找到相关的设置,不知道其他人能不能找到。
不过可以先把页面部署到layouts文件夹下,然后使用代码或者power shell关联,也就是把content type的三个属性DisplayFormUrl, NewFormUrl和EditFormUrl,指向你的页面。
参考http://blog.qumsieh.ca/2009/05/15/how-to-change-the-default-editform-newform-and-dispform/
------解决思路----------------------
ContentType的XML定义里有相应的属性
------解决思路----------------------
https://support.office.com/en-us/article/Create-a-custom-list-form-2a231a5a-a650-43c4-8e2b-403474370307  楼主可以参考一下这个。

我看到的是,用SP Designer先选择一个content type,然后修改。但是楼主这里是先做apsx,再关联。
  相关解决方案