BobH

Editing MT Templates

Vote 0 Votes

I'm new to MT and need to support a site running 4.37.

Is the only way to edit templates via the MT admin panel? Initially I thought I should be editing the code in the default_templates folder.

There's some changes I need to make to templates like 'Javascript' and a few others. Ideally I'd like these code changes to take place in files so the changes can be tracked in SVN and deployed by zipping up files.

But it seems the only way I can get any of my changes to appear is by editing in the MT admin page (Design>Templates) vs actual code of a file on a server. This makes the process of releasing changes much more cumbersome because I have to edit each template manually vs coding locally and deploying the changes.

Is this just the way it is or am I missing something?

Thanks!
-Bob

Reported on Movable Type 4.3

3 Replies

| Add a Reply
  • Hi Bob,

    In order to be able to edit templates as files, you should first go inside each and every template and link them to files on the server.

    Go to:
    Design => Templates

    Then go inside any template.

    Under "Templates Options" you would see an option called "Link to File".

    You could supply there a folders' structure ending with a filename for that very template, or just the filename (without a folders structure).

    If you are going to provide a folders structure, you should first create that/those folder(s), set their permission to 777 and only after that link a template to a file inside such a folder.

    Movable type would create automatically the file, as long as the folders structure (if used) is created and its permission set to 777.

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Web Development
    Movable Type Consulting
    Six Apart Partner

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

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

  • Thanks! What is the default templates folder for then? Is that generally if we wanted to edit templates by file on the server we'd link the template in the admin panel (like you said in your response) to the corresponding default template and then edit the code from there?

  • Movable Type populates the blog templates from that default templates folder.

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