2012-07-03 26 views

回答

-1

什么你的建议听起来不像最佳做法是,newform.aspx,editform.aspx等都是在SharePoint外的现成形式的清单,并应对可能被单独留下。

你做了什么改变?简单的变化,如增加文本框的大小或实质性更改?

您可以创建自己的表单,如果这些变化是实质性

+0

如插入域等之间的文字小的变化......我试图通过创造新的设计形式,但我不能管理使用新形式以编程方式创建 – Holden

+0

我认为它是在内容类型定义中指定在编辑模式和显示模式下使用哪些表单 - 请参阅http://msdn.microsoft.com/en-us/library/aa543904 – Joe

+0

当然,但是如何构建新的aspx? – Holden

1

定制newform.asxp和editform.aspx(在我看来)的最佳方式可能是:

在新的Visual Studio解决方案:

  • 定义您的内容类型列表
  • 定义基于CT
  • 我的列表玛n个部分的“形式”,在schema.xml中定义自己的editform.aspx和newform.aspx ASPX像

    <Forms> 
        <Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" /> 
        <Form Type="EditForm" Url="EditForm.aspx" SetupPath="features\$SharePoint.Feature.DeploymentPath$\YourListDefinitionPathInSolution\YourEditForm.aspx" UseLegacyForm="True" WebPartZoneID="Main" /> 
        <Form Type="NewForm" Url="NewForm.aspx" SetupPath="features\$SharePoint.Feature.DeploymentPath$\YourListDefinitionPathInSolution\YourEditForm.aspx" UseLegacyForm="True" WebPartZoneID="Main" /> 
    </Forms> 
    

在这篇博客文章,你会发现好的食谱:Create custom SharePoint 2010 list form for deployment in a Visual Studio 2010 project

问候

编辑:对不起,配方为2010年版:-(

相关问题