Sharepoint WSP Solutions and page URL's

对着背影说爱祢 提交于 2019-12-25 04:34:52

问题


I’ve been playing about with wsp solutions and a question has occurred to me about how to access an aspx file that is located on the file system from within the sharepoint web application. For instance, here is my visual studio explorer view…

alt text http://abbeylegal.com/downloads/alp%20solution%20image.jpg

You can see the aspx file I’ve created, when I browse to this file in my sharepoint web application the URL is

http://example.org/alplogin.aspx

What if I wanted this web page to be accessed through a deeper URL…

e.g. http://example.org/adminstration/servererrrors/alplogin.aspx

Would I need to create these dummy folders with my visual studio solution to get a one to one mapping to the deeper sharepoint web application URL I want?


回答1:


The "module" element in your feature's element manifest should describe this. Also, if you want your files to be deployed "deeper," you probably want to make sure your feature is scoped as "Web". Then, activating your feature for a specific SharePoint site will cause your file to be deployed as a page within that site.

The MSDN page called How to: Provision a file covers this scenario, I think.




回答2:


Check your elements.xml file. There you can specify where to deploy the aspx page.



来源:https://stackoverflow.com/questions/898094/sharepoint-wsp-solutions-and-page-urls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!