« BlacklistStats v0.5 Beta | Main | MTCategoryCommentCount v0.5 Beta »

Sharing MT Templates Across Multiple Blogs

1. Start with one of your blogs (any blog, it doesn't matter)

2. Create a new Template Module.

3. In the "Link this template to a file" field, enter a file system path and file name to save the template text. For shared template modules, I save them all to a "shared" directory and give each file a "txt" extension.

4. Save the template module.

5. Go to another blog that you also want to use the shared template and create a new template module.

6. Don't put anything in the body of the template module.

7. Give the template module a name and specifiy the *same* path and file name in the "Link this template to a file" field.

8. Save the template. You will see the template module code from the first blog appear in the body.

9. At this point you can modify the template code from any of your blogs and it will be updated across all blog using the module.

Rate this entry:

  • Currently 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 0/5 (0 votes cast). Powered by the Ajax Rating plugin.

TrackBack

TrackBack URL for this entry:

Comments (6)

Thanks!

I found this very helpful, especially since I create a consolidated set of "feeds" for my multiple blogs (each author has their own blog).

Now, I just update the master shared template if we add a new blog/author combo -- and it makes setting up the new blog much quicker.

You can do this with Index Templates, too :) I usually give my linked file an extension of .tmpl to differentiate between the files with MT tags in them and the ones MT has already processed.

Yes, I used to use index templates to do this, but I changed to template modules, for too reasons:

1. From a purely organizational perspective, it is cleaner (for me) to have all my "includes" in one place, seperate from index or archive templates. (in some blogs I have 15+ index and 20+ modules, so it can get pretty busy on that template page :)

2. Index templates (by default) automtically rebuild when indexes are built, including when comments are posted. (Of course you can turn this off, but its an extra step). Since mine are true "module" includes, I don't need/want these to get built "on their own".

we are very happy to break the silence and we just say that we are a designing company and we are totally agree. thanks

thanks

Post a comment

Gift idea: Buy Seinfeld DVD box set, complete 9 seasons!