简体   繁体   English

如何在MovableType中更新和发布模板更改

[英]How to update and publish a template change in MovableType

Total MovableType NOOB question here. 这里共有MovableType NOOB问题。 I have a client that has me updating a MovableType site. 我有一个让我更新MovableType网站的客户端。 I have updated a global template that controls all the blogs within the site but I can't seem to get my code published after saving the template. 我已经更新了控制网站内所有博客的全局模板,但是保存模板后似乎无法发布我的代码。

If I login or out of the system I can see my changes to the file but it just doesn't publish. 如果我登录或退出系统,可以看到我对该文件所做的更改,但该文件未发布。 Do I have to republish the entire site? 我必须重新发布整个网站吗?

If it is a global template and your changes aren't reflected right away, then it means that your blogs are using the 'static' publishing method and you will have to go to each and every blog that uses the global template you've changed and rebuild it. 如果这是一个全局模板,并且您的更改没有立即反映出来,则意味着您的博客正在使用“静态”发布方法,并且您将必须访问每个使用已更改的全局模板的博客。并重建它。

The rebuilding icon is the rounded arrows one from inside the movable type admin right corner. 重建图标是可移动类型admin右角内部的圆形箭头。

If you have a lot of blogs and don't want to do the rebuilding manually, you may like to consider installing the 'PowerRebuild' plugin from: http://plugins.movalog.com/powerrebuild/ 如果您有很多博客,并且不想手动进行重建,则可以考虑从以下网站安装“ PowerRebuild”插件: http ://plugins.movalog.com/powerrebuild/

This plugin would allow you to rebuild multiple blogs at once, without having to go inside each and every blog to rebuild it. 这个插件可以让您一次重建多个博客,而不必深入每个博客来重建它。

yes, you need to re-publish your site / blog / whatever. 是的,您需要重新发布您的网站/博客/其他内容。 Movable Type uses 'static publishing', meaning that your template won't be used until the site will be re-published. Movable Type使用“静态发布”,这意味着在重新发布网站之前不会使用您的模板。

look for the small icon that looks like a refresh / recycle 寻找看起来像刷新/回收的小图标

You don't necessarily need to republish the entire site, it depends where this template is used and whether it is included and/or cached. 您不必重新发布整个网站,它取决于此模板的使用位置以及是否包含和/或缓存该模板。 For example if it is only used in an index or module template, you can rebuild that template alone (it will have a "Save and publish" button in the editor if this is the case). 例如,如果仅在索引或模块模板中使用它,则可以单独重建该模板(在这种情况下,它将在编辑器中具有“保存并发布”按钮)。 But if it's site-wide, or you don't know and want to be on the safe side, then yes rebuilding everything will work. 但是,如果它在整个站点范围内运行,或者您不知道并不想为了安全起见,那么可以重建所有内容。

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

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