DaSilva_Ire

Can you edit the (2/3)column sidebar widgesets via DB?

Vote 0 Votes

I need to change the following widgetsets:
2column_layout_sidebar
3column_layout_primary_sidebar
3column_layout_secondary_sidebar

Manually doing this via the MT admin section for every blog is extremely slow.
I've tried editing them in the database, but it doesn't seem like MT actually uses the contents of the database.

Say I wanted to blank the 2column_layout_sidebar for all blogs, if I run this in the database, the records update, but the changes are not reflected in the MT admin section... which is very odd because if you change the widgetset in the MT admin area the database is updated to reflect the changes...
UPDATE mt_template
SET template_text = ''
WHERE template_identifier='2column_layout_sidebar';

How can I edit the 2column_layout_sidebar for every blog, without having to go through them one by one.

Reported on Movable Type 4.2

1 Reply

| Add a Reply
  • You could surely do it by connecting to the database with a tool like phpmyadmin and then running an SQL command over it.

    As for the exact SQL command, you would have to figure it out yourself. It is just a matter of spending a little time on it.

    Always make sure to backup your database before making any changes to it so that you could roll back if you damage something by accident.

    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/

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