在SharePoint Designer中页面无法编辑?

想编辑页面, 遇到下面这个东东, 怎么回事儿?

edit-in-spd_publishing_message

 

信息:

"This page cannot be edited in SharePoint Designer. You can edit the content in the browser, or edit the corresponding page layout in SharePoint Designer"

 

解决方案:

将这个页面与它的Layout页面断开. 这样, 这个页面就不在是一个ghosted的页面了, 即该页面的layout信息必须被单独一份存放在数据库中.

具体做法是, 在SharePoint Designer中找到这个页面, 然后右键单击, 选择"Detach from page layout".

edit-in-spd_file_click

 

Best practice:

尽管unghosting已经不再是一个大坏狼了, 因为它可以被取消, 你还是不应该这样做的. 这意味着页面从layout页面断开了, 而layout页面为站点中所有的页面都定义了布局. 如果你将来想要修改布局模板, 这个页面就不会跟着变了. 除非你再次attach这个页面, 但是这样做, 你对于布局的修改就丢失了.

 

所以, 在SharePoint2003中的最佳实践仍然有效- 如果你必须修改的话, 只在SharePoint Designer(SPD)中修改页面. 有方法在你认为你不得不使用SPD编辑页面的时候, 来避免在SPD中编辑. 比如说: 创建一个新的布局页面模板, 然后修改页面来应用你的布局模板.


Now, I hear you asking - "what about dataviews? we can only add them using SPD!". And I will cover that in my next article on the best practice of how to add a dataview using SPD to a page, without detaching it from its layout page.

现在, 我听见你在问- "那dataview咋办? 我们只能通过SPD来添加呀!" 下一篇文章我会讲到这个问题: 使用SPD向页面中添加dataview而不需要从layout上detach.


If you cannot wait until I find the time for this article, just click on the "frontpage" tag in my blog - and see how I did it with sharepoint 2003 and frontpage. The method is the same.

 

摘自:

SharePoint Designer Article 1 - how to edit a page?

http://www.sharepoint-tips.com/2007/04/sharepoint-designer-article-1-how-to.html

posted on   中道学友  阅读(1973)  评论(0编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律

导航

< 2010年1月 >
27 28 29 30 31 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31 1 2 3 4 5 6

技术追求准确,态度积极向上

点击右上角即可分享
微信分享提示