Merv

Refresh Blog Templates

Vote 0 Votes

On MT 4.35, Community 1.65:
I have a multiple Blog installation and need to Refresh Blog Templates converting Classic Blog to Community Blog. The process removes all my current templates including Widgets and places them in Backup.

I would need to manually move (copy and paste) all my custom templates including widgets back to the Blog (there are many).

Is there a way to convert the Classic Blog to Community Blog minimizing the number of custom templates being moved to Backup?

As an alternative, is there a way to promote these to global? Or at least the widgets to Global?

Thanks for your guidance.
Merv

Reported on Movable Type 4.3

4 Replies

| Add a Reply
  • You should be able to convert some of those templates to system templates by changing the "template_blog_id" value from whatever blog id is that to "0" ("0", without the quotes, stands for system level).

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/
    ----------------------------------

    Open Melody Demo
    http://www.openmelodydemo.org/

  • Thanks Mihai,
    I remember the Convert to Global plugin by Mark Carey and tried it. It has a MT 4.35 compatibility problem: convert to global for widgets does not appear in action_items. Modules and all the convert to blog actions work great. Appears to have been developed for MT 4.1(+?) when 4.1 was still using the Widget Manager plugin.

    In trying to debug the plugin, I discovered I could simply modify the template_blog_id in the database as you suggest.

    If I knew more about the internals of MT and plugin development, I could probably find the problem with widgets convert to global.
    Thanks again,
    Merv

  • You're welcome Merv!

    When I need to do that kind of things, usually with Custom Fields, I prefer to do it directly on the mySQL database, than using a plugin just for the sake of not relying on external resources which could be subject to conflicts (not working anymore on a given version of MT).

    There is one single thing you should be careful about. Always backup your database before making changes to it :)

    Kind Regards,
    Mihai Bocsaru

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012