在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 2010-01-14 11:58  中道学友  阅读(1965)  评论(0编辑  收藏  举报

导航

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