从 Dreamweaver 模板分离许多页面

发布于 2024-08-18 07:45:21 字数 70 浏览 3 评论 0原文

我有一个来自客户的大约 500 个页面的网站,所有页面都附加到一个模板。有什么方法可以进行“批量分离”而不是单独浏览每个文件?

I've got a site of about 500 pages from a client, all attached to a template. Is there any way I can do a "bulk detach" rather than going through each file individually?

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

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

发布评论

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

评论(1

開玄 2024-08-25 07:45:21

我假设您正在 Dreamweaver 中工作。如果您的站点基于 Dreamweaver“文件”面板中显示的模板,请转到:
修改>模板>不带标记导出...

系统会询问您要将文件保存到何处。如果您打算只执行一次此操作,请取消选中 UI 上的两个复选框。如果您需要多次执行此操作,请查看帮助文件,他们可能会告诉您何时可能或可能不想选择这些选项。

如果您想停止使用“旧”文件并继续使用 Dreamweaver 中的文件,我会将不带标记的文件导出到另一个文件夹,然后更改站点定义以指向新位置,或者交换内容Dreamweaver 关闭的文件夹的数量(以防止它想要查看所有内容以尝试查找更新的链接)

注意:此时,Dreamweaver 中存在一个错误(我在 CS3 和 CS4 中看到过),该错误是由 Microsoft 在Vista SP2 和 Windows 7,浏览文件夹对话框可能会选择您认为要选择的文件夹上方的文件夹,请参阅:http://forums.adobe.com/message/2183285)。因此,您要么需要再挖掘一个文件夹,要么确保在浏览文件夹中选择一个文件夹后验证/更新文件夹路径。

如果您不在 Dreamweaver 中,则需要进行大量查找和替换。

I assume that you're working within 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...

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. 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)

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 ). 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.

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