Why is SPD adding content to my file?

Question:
I'm using SPD to edit an HTML file that's in SharePoint (in a subfolder of SiteAssets). Later, I return to the file in SPD to find that the following content has been added to the file 

<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:_dlc_DocId msdt:dt="string">2TTW66AP5EP2-4-16</mso:_dlc_DocId>
<mso:_dlc_DocIdItemGuid msdt:dt="string">99e55405-8ec0-4d75-950a-a29493433d06</mso:_dlc_DocIdItemGuid>
<mso:_dlc_DocIdUrl msdt:dt="string">http://www.contoso.com/_layouts/DocIdRedir.aspx?ID=2TTW66AP5EP2-4-16, 2TTW66AP5EP2-4-16</mso:_dlc_DocIdUrl>
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>


Answer:
When you edit a file in SPD, the file automatically becomes "Unghosted". This (rather confusing) term means that the file has been "Customized".

The effects of this depends on what type of file you are editing. For example, if you are editing a Page Layout, the code that's added will literally break the page, since the content added will not be wrapped inside a (of the master page). 
In your case, it may not cause any problems.

Here are some good references on Ghosted VS Unghosted and how to reghost files in case of need.

Ghosted VS Unghosted: http://www.a2zdotnet.com/View.aspx?Id=87#.T1a77YewauI 
Disabling ghosting: http://blogs.msdn.com/b/steve_fox/archive/2010/03/08/ghosting-unghosting-in-sharepoint-2010.aspx 
Reghosting (need to install a wsp with stsadm extensions): http://blog.falchionconsulting.com/index.php/2007/09/re-ghosting-pages/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要使用spdlog,需要按照以下步骤进行设置: 1. 下载spdlog的代码库。可以在https://github.com/gabime/spdlog上找到spdlog的代码。 2. 将下载下来的代码解压,并找到其中的include文件夹。该文件夹包含了spdlog所需的头文件和源码。 3. 新建一个C++项目,例如控制台应用程序项目。 4. 打开项目属性页,进入C/C++设置。 5. 在常规选项卡的附加包含目录中,添加spdlog的include文件夹的路径。 6. 在代码中包含spdlog的头文件,例如`#include "spdlog/spdlog.h"`。 7. 可以开始使用spdlog了。以下是一个简单的示例代码,用于在控制台输出日志: ```cpp #include "spdlog/spdlog.h" int main() { // 创建一个名称为"console"的logger,将日志输出到控制台 auto console_logger = spdlog::stdout_logger_mt("console"); // 输出不同级别的日志 console_logger->trace("This is a trace message"); console_logger->debug("This is a debug message"); console_logger->info("This is an info message"); console_logger->warn("This is a warning message"); console_logger->error("This is an error message"); return 0; } ``` 在该示例代码中,我们首先创建了一个名为"console"的logger对象,该对象将日志输出到控制台。然后,我们使用不同的日志级别输出了不同的日志消息。 注意:以上示例只是spdlog的简单用法,还有更多高级用法可以根据需要使用。请参考spdlog的文档和示例代码以了解更多详细信息。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值