简体   繁体   English

部署aspx页面作为Sharepoint 2010功能的一部分

[英]Deploy aspx page as part of a Sharepoint 2010 Feature

I am trying to find a way to deploy pre-built .aspx pages as part of a Sharepoint 2010 Feature. 我试图找到一种方法来部署预构建的.aspx页面作为Sharepoint 2010功能的一部分。 What is the best way to do this? 做这个的最好方式是什么?

If you are talking about application pages then best way to do it is just add a mapped folder to the Layouts directory in your SharePoint project by right clicking on the project and selecting Add -> SharePoint Mapped Folder. 如果您正在谈论应用程序页面,那么最好的方法是通过右键单击项目并选择添加 - > SharePoint映射文件夹,将映射文件夹添加到SharePoint项目的Layouts目录中。

Create a folder for your application under Layouts and add your aspx to this folder. 在Layouts下为您的应用程序创建一个文件夹,并将您的aspx添加到此文件夹。 Your aspx will automatically get deployed with your solution. 您的aspx将自动与您的解决方案一起部署。

another option is to add the page via a module. 另一种选择是通过模块添加页面。 try this example: http://blog.beckybertram.com/Lists/Posts/Post.aspx?ID=71 试试这个例子: http//blog.beckybertram.com/Lists/Posts/Post.aspx?ID = 71

the advantage of this option is, you can use a custom site-template and install your own webparts on the new page 此选项的优点是,您可以使用自定义网站模板并在新页面上安装自己的网站部件

<Module Name="Pages" Url=""  Path=""  >
<File Path="Pages\Print.aspx" Url="Print.aspx" Type="Ghostable" NavBarHome="True" />
</Module>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM