带有嵌入式列引用和 Web 部件的页面布局 - 2007 年至 2010 年的升级影响?

发布于 2025-01-08 03:47:24 字数 900 浏览 3 评论 0原文

我有一个 2007 SharePoint 网站,其中包含一些自定义页面布局,其中包含用于 Web 部件和可编辑内容列的自定义控件。我们即将升级到 MOSS 2010,但我不确定对依赖这些布局的页面内容的影响。

页面库应该成功迁移,因此我们的数据将完好无损,但我可以帮助理解这两个问题!

  1. MOSS 2010 带有新的布局。我们需要根据需要自定义这些以满足我们的新设计,但是我们如何插入 Web 控件以将它们链接回页面库中的列?是不是就像将以下 2007 年的代码片段复制到 2010 年的布局文件中一样简单?

    ;
    
    • 在这种情况下,我们可能需要单独编辑所有页面并将它们重新分配给我们的新布局?
    • 库中的所有页面都会立即启动并正确显示内容吗?
  2. 如果将 Web 部件放置到布局页面上,同样的情况会如何发生?所有内容都将根据布局文件中相应的 Web 部件区域代码以及手动放置在布局本身上的任何 Web 部件创建。

    
    
    • 同样,我们是否只需复制 Web 部件代码,然后将 Web 部件重新导入到布局中即可使其出现在所有页面上?

I've got a 2007 SharePoint site with some custom page layouts which have custom controls for webparts and editable content columns. We're due to upgrade to MOSS 2010, but I'm not sure about the implications for the page content which relies on these layouts.

The Page Library should migrate successfully, so our data will be intact, but I could do with some help understanding these two issues please!

  1. MOSS 2010 comes with new layouts. We'll need to customise these as required to meet our new designs, but how do we then insert our web controls to link them back to the columns in the Pages library? Is it as simple as copying the following 2007 code snippet into the 2010 layout file?

    <SharePointWebControls:Notefield FieldName="Comments" runat="server" id="NoteField20" CssClass="ArticleEditMode"></SharePointWebControls:NoteField>
    
    • In this scenario we'd presumably need to edit all the pages individually and re-assign them to our new layout?
    • Will all the Pages in the library then instantly spring to life and display things correctly?
  2. How will the same situation play out with the webparts placed onto the layout page? All will be created against the corresponding webpart zone code in the layout file, and whatever webpart was placed manually on the layout itself.

    <WebPartPages:WebPartZone runat="server" Title="Right Column" ID="TopRightRow"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
    
    • Again, do we simply need to copy the webpart code over, and then re-import the webpart into the layout to get it appearing across all pages?

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

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

发布评论

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

评论(1

吃兔兔 2025-01-15 03:47:24

任何 SharePointWebControls 将继续在 2010 上工作(它们只是列表项中数据的编辑模式和显示模式的视觉呈现),但为了能够依赖 2010 本机(或自定义)页面布局,您需要将您的 UIVersion 更新到 4.0 并切换到本机 2010 母版页(如果您在 3.0 版本中有自定义内容占位符,则切换到自定义母版页)。

如果您没有如此自定义的母版页/页面布局/内容类型,升级过程可能会很顺利,否则,最好继续使用 v3 模式

我宁愿更新将部署到母版页库的页面布局逐步包含 v4 特定的渲染,而不是分离页面布局关联并选择另一个。

最后,为了成功开始将 2007 安装升级到 2010,您可以依靠可视化升级指南:http://msdn.microsoft.com/en-us/library/gg454789.aspx
并升级您的母版页:http://msdn.microsoft.com/en- us/library/ee539981.aspx

顺便说一句,2010 年的 UI 并不是圣杯,一旦你开始对其进行大量定制,你就会看到它的局限性因此,更新 2007 年的 UI 并依赖 2010 年的新功能可能会更好,而不是完全(视觉上)升级到 2010 年

。请。

Any SharePointWebControls will continue working on 2010 (they are just the visual rendering of the edit mode and display mode of the data within your list items) but to be able to rely on 2010 native (or customize) page layouts, you'll need to update your UIVersion to 4.0 and switch to a native 2010 master page (or a customized one if you had custom contentplaceholders in the 3.0 edition).

If you had not so customized master page / page layouts / content types, the upgrade process might be smooth otherwise, it might be better to continue in v3 mode

I'd rather update your page layouts that will be deployed to the master page gallery to progressively include v4 specific rendering rather than detaching the page layout association and picking another one.

Finally, in order to successfully start to upgrade your 2007 installation to 2010, you can rely on the visual upgrade guide : http://msdn.microsoft.com/en-us/library/gg454789.aspx
and to upgrade your master page : http://msdn.microsoft.com/en-us/library/ee539981.aspx

As a side remark, the 2010 UI isn't the holy grail and as soon as you start to heavily customized it, you'll see it's limits so it might be better to freshen your 2007 UI and rely on 2010 new functionnalites rather than fully (visually) upgrade to 2010.

Kindly.

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