通过 Sharepoint 2010 提供外部 HTML

发布于 2024-10-04 02:25:13 字数 331 浏览 0 评论 0原文

在 sharepoint 2003(我相信是 2007)中,当我将 HTML 文件放入共享文件夹中时,我可以访问它的 URL 并将其视为网站。

使用 Sharepoint 2010,会发送“附件”内容处置标头,但我无法再执行此操作(下载 HTML 文件而不是查看)。

我真的很想使用 Sharepoint 2010“列表”中的数据(通过 AJAX 和 XML-RPC Sharepoint 2010 提供的数据使用)创建一个微型网站,但显然这使得它变得很困难。有谁知道我如何才能实现这一目标?

(PS。我需要这个微型网站的全屏空间,因此在 sharepoint 中使用 HTML 似乎是一个坏主意)

In sharepoint 2003 (and 2007 I believe) when I put an HTML file in a shared folder I could visit it's URL and view it as a website.

With Sharepoint 2010 the 'attachment' content-disposition header is sent and I can no longer do this (the HTML file is downloaded rather than viewed).

I really want to make a micro site using data from a Sharepoint 2010 'list' (consumed via AJAX and the XML-RPC Sharepoint 2010 offers) but obviously this makes it difficult. Does anyone know how I could achieve this?

(PS. I need the full screen real estate for this microsite, so using HTML from within sharepoint would seem like a bad idea)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

上课铃就是安魂曲 2024-10-11 02:25:13

要显示 HTML 文件而不是下载,您需要在管理中心的 Web 应用程序的常规设置页面中设置浏览器文件处理设置。如果将此设置为“严格”,则它将仅打开 docicon.xml 文件中具有 OpenControl 条目的文件。尝试将其设置为“允许”。

To get the HTML file to display instead of download you need to set the Browser File Handling setting in the General settings page for a web application in Central Administration. If this is set to 'Strict', then it will only open files with an OpenControl entry in the docicon.xml file. Try to set it to 'Permissive'.

乱世争霸 2024-10-11 02:25:13

我发现,通过为 html 文件提供 .aspx 扩展名,sharepoint 会将文档作为 html inlin 提供,而不是作为附件。希望这对其他人有帮助:)

I discovered that by giving an html file the .aspx extension, sharepoint will serve the document as html inlin, rather than as an attachment. Hope this helps someone else :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文