备份 Magento 主题
我正在对购买的 magento 主题进行一些更改。除了复制应用程序皮肤和媒体及其目录结构中的相关文件夹之外,还有其他更简单的方法来备份我的工作吗?
I am making some changes to a purchased magento theme. Is there any simpler way to backup my work other than by copying the relevant folders inside app skin and media and their directory structures.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议您将购买的主题作为默认主题,即放在包下的“默认”文件夹中。然后,您可以声明另一个主题,例如“自定义”,并将路径/文件复制到您想要覆盖的位置。您只需在管理>中将“默认”值设置为“自定义”即可。系统>配置>设计>主题。
What I recommend that you do is to have your purchased theme as your default theme, i.e. in the "default" folder under your package. You can then declare another theme, e.g. "custom", and copy the path/files to there that you wish to override. You just need to set the "Default" value to "custom" in Admin > System > Configuration > Design > Theme.
只是想我会为任何人回答这个问题 - 据我所知,问题的答案是否定的,不是真的 - 除非我以错误的方式做 - (我认为不是)那么最好的方法备份自定义主题的方法是首先将整个应用程序、皮肤和媒体(如果相关)目录压缩到一个存档文件中,将其移动并在空目录中展开,然后小心地删除所有其他主题文件夹,仅保留文件您正在使用的目录树以及您创建的目录树 - 这保留自定义主题中的所有文件以及必要的目录结构。如果有人有更好的方法也许他们会分享。
Just thought I'd answer this for anyone coming along - as far as i can make out the answer to the question is no, not really - unless I'm doing it the wrong way - ( and I think not ) then the best method of backing up a custom theme is to first compress the entire app, skin and media ( if relevant) directories into one archive file, move this and expand it in an empty directory, then carefully delete all the other theme folders, leaving just the files which you are using and the directory trees which you have created - this preserves any files you have in your custom theme and also the necessary directory structure. If anyone has a better method maybe they'd share it.