R – Sharepoint WSP Solutions and page URL’s

mosssharepointwss

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?

Best Answer

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.