简体   繁体   English

将2个简单的aspx页面添加到Sharepoint网站定义

[英]Adding 2 simple aspx pages to Sharepoint Site Definition

I am working on a sharepoint website which is built upon a Site Definition in visual studio. 我正在一个基于Visual Studio中的“网站定义”的sharepoint网站上工作。

All i would like to do is simply add 2 aspx pages to this Site Definition. 我要做的只是向此网站定义添加2个aspx页面。 Kindly reply how can i accomplish this. 请回复我该怎么做。

Do i add new aspx files under Site Template folder or add a new Feature perhaps? 我是在“网站模板”文件夹下添加新的aspx文件还是添加新功能? so that when i deploy my solution (.wsp) the two aspx pages appear on the site. 这样,当我部署解决方案(.wsp)时,两个aspx页面就会显示在网站上。

I suggest you create a module feature , add the two .aspx pages to the feature and then add this feature to the site definition. 我建议您创建一个模块功能 ,将两个.aspx页添加到该功能,然后将该功能添加到站点定义。

Maybe also helpful: How to: Provision a File 可能也有帮助: 如何:设置文件

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

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