简体   繁体   English

从Dreamweaver模板中分离许多页面

[英]Detach many pages from a Dreamweaver template

I've got a site of about 500 pages from a client, all attached to a template. 我从一个客户端获得了大约500页的网站,所有网站都附在一个模板上。 Is there any way I can do a "bulk detach" rather than going through each file individually? 有什么方法可以做“批量分离”而不是单独浏览每个文件?

I assume that you're working within Dreamweaver. 我假设你在Dreamweaver中工作。 If you have the site that is based upon a template displayed within the Files panel in Dreamweaver, go to: Modify > Templates > Export without Markup... 如果您的站点基于Dreamweaver中“文件”面板中显示的模板,请转到:修改>模板>导出不带标记...

You'll be asked where you want to save your files to. 系统会询问您要将文件保存到的位置。 If you plan on doing this only once, then uncheck the two checkboxes on the UI. 如果您打算只执行一次此操作,请取消选中UI上的两个复选框。 If you need to do it multiple times, look at the help files they may be able to let you know when you might or might not want to select those options. 如果您需要多次执行此操作,请查看他们可能会在您可能或不想选择这些选项时通知的帮助文件。

If you want to stop working with the "old" file and keep working with the files within Dreamweaver, I'd export the files without markup to another folder, then change the site definition to point to the new location, or perhaps swap the contents of the folders with Dreamweaver closed (to prevent it wanting to look through everything to try to find updated links) 如果您想停止使用“旧”文件并继续使用Dreamweaver中的文件,我会将没有标记的文件导出到另一个文件夹,然后将网站定义更改为指向新位置,或者可能交换内容关闭Dreamweaver的文件夹(以防止它想要查看所有内容以尝试查找更新的链接)

Note: At this time, there's a bug in Dreamweaver (I've seen it in CS3 and CS4) that was introduced by Microsoft in Vista SP2 and Windows 7, the browse for folder dialog may select a folder above the one you think you're selecting see: http://forums.adobe.com/message/2183285 ). 注意:目前,微软在Vista SP2和Windows 7中引入了Dreamweaver中的一个错误(我在CS3和CS4中看到过它),浏览文件夹对话框可能会选择一个文件夹,高于您认为的那个文件夹。重新选择参见: http//forums.adobe.com/message/2183285 )。 So you'll either need to dig down one further folder, or make sure you verify/update the folder path after you've selected a folder in the browse folder. 因此,您需要挖掘另一个文件夹,或者确保在浏览文件夹中选择文件夹后验证/更新文件夹路径。

If you're not within Dreamweaver, then you'll need to do a good bit of find and replace. 如果你不在Dreamweaver中,那么你需要做一些很好的查找和替换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM