经常我们需要修改列表项的添加页面(NewForm.aspx),因为这个页面总是那么千篇一律。
如我们这里New一个列表项:
1.Sharepoint designer修改
A.用Sharepoint designer check out 这个页面,然后选择这个listformwebpart,右键选择Web Part Properties:
在Layout选项卡下面勾选Hidden多选框,然后点击OK按钮;
B.在当前的WebPartZone里添加一个新的自定义的SharePoint control。
定位至当前的WebPartZone里,选择菜单"Insert"->"SharePoint Controls"->"Custom List Form":
选择列表名、内容类型、创建的list form类型,然后点击OK:
C.切换到Code视图,修改相应的HTML代码即可。
Check In this page, and then refresh it in IE.