问题
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