我一直在研究 wsp 解决方案,并且出现了一个问题,即如何从 sharepoint Web 应用程序中访问位于文件系统上的 aspx 文件。 例如,这是我的 Visual Studio 资源管理器视图...
替代文本 http://abbeylegal.com /downloads/alp%20solution%20image.jpg
您可以看到我创建的 aspx 文件,当我在我的 sharepoint Web 应用程序中浏览到此文件时,URL 为
http://example.org/alplogin.aspx
如果我希望通过更深层次的 URL 访问此网页该怎么办...
例如 http://example.org/adminstration/servererrrors/alplogin.aspx
我需要创建这些虚拟文件夹吗我的 Visual Studio 解决方案可以一对一映射到我想要的更深层次的共享点 Web 应用程序 URL?
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?
发布评论
评论(2)
功能元素清单中的“module”元素应该对此进行描述。 另外,如果您希望将文件部署得“更深”,您可能需要确保您的功能范围为“Web”。 然后,激活特定 SharePoint 站点的功能将导致您的文件被部署为该站点内的页面。
名为如何:配置文件的 MSDN 页面涵盖了这种情况,我认为。
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.
检查您的 elements.xml 文件。 您可以在其中指定部署 aspx 页面的位置。
Check your elements.xml file. There you can specify where to deploy the aspx page.