protocol7 home

Rebuild all blogs

Lazyweb wish: I’m hosting a bunch of blogs on my installation of MT (>10, might soon be >50). Most of these share the same templates, so, when I change something in one of the templates I want to rebuild all blogs. Instead of doing this one-by-one I would like a simple “Rebuild all blogs”. Anyone got this already or has a good idea to where to start building it?

Thanks for helping out!

Tags: . 4 Comments »

4 Responses

  1. Aaron of Montreal Says:
    Use DBI and MTShell [1] to :

    1) get a list of blog ids from the database

    2) loop over the list and call the relevant methods from MTShell to rebuild the entries.

    [1] http://www.blisspuppet.com/MTshell/

  2. Niklas Gustavsson Says:
    I didn’t know about MTshell. It looks really interesting. But, unfortunatly I don’t run my own server so I can’t use the command line.
  3. Aaron of Montreal Says:
    Okay, then I would (re) invoke the lazy web and ask someone to write the necessary glue code to call MTShell from an XMLRPC::Lite cgi thingy.

    Then you could :

    1) use Net::Blogger to get a list of blogs for user you, via blogger.getUsersBlogs()

    2) loop over the list and use call your new MTShell xmlrpc widget to rebuild the entries.

    (If you get someone to do the first part, I’ll add a Net::Blogger::Movabletype::mtshell class :-)

  4. mymarkup.net Says:
    MT-relaterat

    Movable Type

Creative Commons Attribution 3.0 licensed unless otherwise specified.