Not a developer? Go to MovableType.com

Plugin and Theme Directory

Theme Assistant v1.0.3

By Dan Wolfgang
Posted April 2, 2014, in Developer.

Details

If you are familiar with the Melody/Endevver approach to theming with Movable Type 4, you are also likely familiar with the Theme Manager plugin. Theme Manager did a lot of great things to make themes more manageable on Movable Type 4, however Movable Type 5 introduced a more comprehensive theming system, largely negating the need for Theme Manager’s capabilities.

But, there are still some things Theme Manager does that we missed in MT5 — most notably, setting Template Module and Widget caching options automatically and the ability to update Custom Fields. (Theming in MT5 supports installing Custom Fields, but not updating them.)

Installation

To install this plugin follow the instructions found here:

http://tinyurl.com/easy-plugin-install

Use

Specify your Custom Fields and caching options in YAML. Note that Theme Assistant currently only looks at template_sets (the MT4 way of theming) to find these values. Some abbreviated example YAML:

templatesets: myawesometheme: label: ‘My Awesome Theme’ templates: module: myhelpermodule: label: ‘Cached Helper Module’ cache: expiretype: 1 expireinterval: 60 includewithssi: 1 fields: entryextratextfield: label: ‘Extra Text Field’ description: ‘This is a text custom field.’ default: ‘Replace this default text with any value.’ required: 1 obj_type: entry type: text tag: EntryExtraTextField

Set Caching and Include Options

Caching options can also be specified for Template Modules and Widgets with the following keys (if you’ve used the UI to set caching, these options should all be familiar). Module Caching must be enabled, though Theme Assistant will automatically enable caching if it’s not already set.

  • cache - the parent key to the below options
  • expire_type -
    • 0: No caching (the default method)
    • 1: time-based expiration (“Expire after x minutes”)
    • 2: event-based expiration (“Expire upon creation or modification of object”)
  • expire_interval - This key is used only if expire_type: 1 is used. Specify a time to expire in minutes.
  • expire_event - This key is used only if expire_type: 2 is used. Specify a valid object to cause expiration. Valid objects are as follows:
    • asset
    • author
    • category
    • comment
    • entry
    • folder
    • page
    • tbping

Another import aspect to caching is using “includes.” The key include_with_ssi allows the specified module or widget to be included as an external file, saving server resources and making it easy to keep content updated site-wide. Possible values are 1 and 0 (the default). Within the UI, this option corresponds to the “Process as [SSI method] include” option found when editing Template Modules and Widgets.

Server Side Includes must be enabled at the blog level (enable this in Settings > General).

Install and Update Custom Fields

Many sites require the use of the Movable Type Commercial Pack’s Custom Fields (part of MT Pro). If fields are specified in your theme’s config.yaml they can be automatically created when you apply your theme.

The following example shows how to add a text custom field for Entries to the theme we’re building.

template_sets:
    my_awesome_theme:
        label: 'My Awesome Theme'
        fields:
            entry_extra_text_field:
                label: 'Extra Text Field'
                description: 'This is a text custom field.'
                default: 'Replace this default text with any value.'
                required: 1
                obj_type: entry
                type: text
                tag: EntryExtraTextField
                scope: blog

Custom Field definitions appear beneath the key fields.

The key entry_extra_text_field is the basename of this field.

The description, required, default, and scope keys are optional.

The key obj_type is the type of object this field targets; entry, page, category, folder, and author are valid. These correlate to the System Object field in the GUI, of course.

The key type is the type of field to be created. Note that this is the key name of the field, not the public-facing name you see in the GUI. The Commercial Pack defines the following types of fields with these keys:

  • Text: text
  • Multi-Line Text: textarea
  • Checkbox: checkbox
  • URL: url
  • Date and Time: datetime
  • Drop Down Menu: select
  • Radio Buttons: radio
  • Embed Object: embed
  • Post Type: post_type
  • Asset: asset
  • Audio: asset.audio
  • Image: asset.image
  • Video: asset.video

If you have other custom fields available they may also be specified in your theme’s config.yaml; you just need to specify the key correctly.

To create a system-level custom field (necessary is you use the author object type), include the scope key:

template_sets:
    my_awesome_theme:
        label: 'My Awesome Theme'
        fields:
            author_bio:
                label: 'Author Bio'
                obj_type: author
                type: textarea
                tag: AuthorBio
                scope: system

Compatibility

Movable Type versions: 5.05.15.26.0 Verified

License

Perl Artistic


Back

86 Comments

Dylan

Dylan on April 4, 2016, 6:13 a.m. Reply

check out review of citidel here. Undoubtedly, they are best binary signals service providers.

moneybaba

moneybaba on April 18, 2016, 7:50 a.m. Reply

Really it is an awesome theme designer plugin helps me quite well, reduce my time investment and load over me. You can watch all movies online at free movie site

Looking for more let me know Thanks.

Sunil Shrestha

Sunil Shrestha on July 9, 2016, 3:14 p.m. Reply

Thanks for sharing!

192.168.1.1

seorankbuilder

seorankbuilder on December 23, 2016, 11:10 a.m. Reply

I was looking at some of your posts on this website and I conceive this web site is really instructive! Keep putting up..

acne treatment

seorankbuilder

seorankbuilder on December 23, 2016, 3:19 p.m. Reply

I found your this post while searching for some related information on blog search…Its a good post..keep posting and update the information. pheromone colognes for men and women

seorankbuilder

seorankbuilder on December 23, 2016, 3:22 p.m. Reply

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. pheromone products for men and women

seorankbuilder

seorankbuilder on December 24, 2016, 2:52 p.m. Reply

Thanks for your information. it was really very helpfull.. www.vervex.info

seorankbuilder

seorankbuilder on December 25, 2016, 10:06 p.m. Reply

Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. cannabis buy

seorankbuilder

seorankbuilder on December 27, 2016, 10:00 a.m. Reply

This type of message always inspiring and I prefer to read quality content. so happy to find good place to many here in the post. the writing is just great. thanks for the post. cannabis hq

seorankbuilder

seorankbuilder on December 28, 2016, 6:35 a.m. Reply

Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot. carpet cleaning

seorankbuilder

seorankbuilder on December 28, 2016, 1:37 p.m. Reply

Very good points you wrote here..Great stuff…I think you’ve made some truly interesting points.Keep up the good work. carpet cleaning services

seorankbuilder

seorankbuilder on December 28, 2016, 2:54 p.m. Reply

Most of the time I don’t make comments on websites. but I’d like to say that this article really forced me to do so. Really nice post! cannabis wholesaler

seorankbuilder

seorankbuilder on December 30, 2016, 6:14 a.m. Reply

I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all… cannabis clubs

seorankbuilder

seorankbuilder on January 2, 2017, 5:46 p.m. Reply

The information you have posted is very useful. The sites you have referred was good. Thanks for sharing.. buy followers

seorankbuilder

seorankbuilder on January 4, 2017, 6:04 p.m. Reply

Best Western Plus in Kansas city

seorankbuilder

seorankbuilder on January 4, 2017, 6:04 p.m. Reply

Great! It sounds good. Thanks for sharing.. Best Western Plus in Kansas city

seorankbuilder

seorankbuilder on January 11, 2017, 11:03 p.m. Reply

This is just the information I am finding everywhere. Thanks for your blog. I just subscribe your blog. This is a nice blog.. fast english translation service

seorankbuilder

seorankbuilder on January 12, 2017, 1:00 p.m. Reply

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can’t wait to read lots of your posts. dentist seo expert

seorankbuilder

seorankbuilder on January 14, 2017, 7:04 a.m. Reply

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can’t wait to read lots of your posts. wernerweb.no

seorankbuilder

seorankbuilder on January 16, 2017, 2:08 p.m. Reply

Interesting and amazing how your post is! It Is Useful and helpful for me That I like it very much, and I am looking forward to Hearing from your next.. Augusto de Arruda Botelho

Real Photos

Real Photos on January 16, 2017, 3:14 p.m. Reply

עקבו אחר הבלוג שלי -בלוג סקס ונערות ליווי בנות לוהטות.

בבלוג תמצאו מדריכים וטיפים לשיפור חיי המין שיעזרו לך עם הסקס היומיומי עם האישה והמאהבת.

כמו כן באתרינו תמצאו ביקורות על נערות ליווי להזמנה בארץ הקודש חלב והדבש ישראל.

בתודה, מנהל בנות לוהטות.

seorankbuilder

seorankbuilder on January 16, 2017, 6:10 p.m. Reply

I admit. I have not been on this web page in a long time… however it was another joy to see It is such an important topic and ignored by so many. even professionals. professionals. I thank you to help making people more aware of possible issues. www.DIYRoofs.co

seorankbuilder

seorankbuilder on January 17, 2017, 11:11 a.m. Reply

This one is good. keep up the good work!.. Attract Women with Pheromone Products for Men

seorankbuilder

seorankbuilder on January 18, 2017, 11:29 a.m. Reply

I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. chunky merino wool blanket

seorankbuilder

seorankbuilder on January 19, 2017, 2:14 p.m. Reply

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. Georges Sadala Rihan

seorankbuilder

seorankbuilder on January 19, 2017, 3:33 p.m. Reply

You have a good point here!I totally agree with what you have said!!Thanks for sharing your views…hope more people will read this article!!! see here

seorankbuilder

seorankbuilder on January 21, 2017, 1:04 p.m. Reply

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. alpha androstenol

seorankbuilder

seorankbuilder on January 22, 2017, 1:37 p.m. Reply

Excellent .. Amazing .. I’ll bookmark your blog and take the feeds also…I’m happy to find so many useful info here in the post, we need work out more techniques in this regard, thanks for sharing. mauro luiz zamprogno

joe15234

joe15234 on January 22, 2017, 7:52 p.m. Reply

I really wanted to send a small word to say thanks to you for the fantastic points you are writing on this site. psoriasis

joe15234

joe15234 on January 22, 2017, 7:53 p.m. Reply

My friend recommended this blog and he was totally right keep up the good work plaque psoriasis

joe15234

joe15234 on January 22, 2017, 7:54 p.m. Reply

Great site, Distinguished criticism that I can handle. Im pushing ahead and may apply to my present place of employment as a pet sitter, which is exceptionally charming, yet I have to extra grow. Respects. scalp psoriasis

joe15234

joe15234 on January 22, 2017, 7:56 p.m. Reply

Very nice article. I enjoyed reading your post. very nice share. I want to twit this to my followers. Thanks!. eyebrow threading

seorankbuilder

seorankbuilder on January 24, 2017, 7:01 p.m. Reply

this is really nice to read..informative post is very good to read..thanks a lot! Georges Sadala Rihan

seorankbuilder

seorankbuilder on January 25, 2017, 11:01 p.m. Reply

it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity.. www.y8games.center

seorankbuilder

seorankbuilder on January 26, 2017, 4:52 p.m. Reply

You’ve got some interesting points in this article. I would have never considered any of these if I didn’t come across this. Thanks!.

florida imoveis

seorankbuilder

seorankbuilder on January 29, 2017, 12:52 a.m. Reply

Hey There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return. SEO Services

seorankbuilder

seorankbuilder on January 29, 2017, 11:18 a.m. Reply

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information… international movers

seorankbuilder

seorankbuilder on January 31, 2017, 6:10 p.m. Reply

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. casa Orlando

seorankbuilder

seorankbuilder on February 1, 2017, 7:22 p.m. Reply

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that “The content of your post is awesome” Great work. enxoval de bebe

seorankbuilder

seorankbuilder on February 2, 2017, 3:21 p.m. Reply

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that “The content of your post is awesome” Great work. craigslist posting service

seorankbuilder

seorankbuilder on February 9, 2017, 4:17 p.m. Reply

Thanks for another wonderful post. Where else could anybody get that type of info in such an ideal way of writing? see post

seorankbuilder

seorankbuilder on February 11, 2017, 5:09 p.m. Reply

I really like your writing style, great information, thankyou for posting. reduce hunger and cravings

seorankbuilder

seorankbuilder on February 13, 2017, 11:01 a.m. Reply

I really impressed after read this because of some quality work and informative thoughts . I just wanna say thanks for the writer and wish you all the best for coming!. sinus pills

seorankbuilder

seorankbuilder on February 14, 2017, 9:47 a.m. Reply

Your blog provided us with valuable information to work with. ЗАЧЕМ УЧИТЬСЯ в школе

seorankbuilder

seorankbuilder on February 14, 2017, 2:16 p.m. Reply

It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing. pheromones for males

seorankbuilder

seorankbuilder on February 16, 2017, 8:26 a.m. Reply

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.

ibs treatment

seorankbuilder

seorankbuilder on February 19, 2017, 8:38 a.m. Reply

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. hemorrhoid forum

jams

jams on February 23, 2017, 9:31 a.m. Reply

Nice to read your article! I am looking forward to sharing your adventures and experiences. Rinjani Trekking Information

seorankbuilder

seorankbuilder on February 25, 2017, 8:50 a.m. Reply

Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future. www.frivplay.info

seorankbuilder

seorankbuilder on February 25, 2017, 1:16 p.m. Reply

Most of the time I don’t make comments on websites, but I’d like to say that this article really forced me to do so. Really nice post! www.gungames.us

seorankbuilder

seorankbuilder on February 25, 2017, 4:40 p.m. Reply

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. www.gungamesgun.info

seorankbuilder

seorankbuilder on March 4, 2017, 2:50 p.m. Reply

Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. www.kizigamesfriv.info

seorankbuilder

seorankbuilder on March 5, 2017, 12:39 p.m. Reply

I have recently started a blog, the info you provide on this site has helped me greatly. Thanks for all of your time & work. www.kizigameskizi.net

seorankbuilder

seorankbuilder on March 5, 2017, 1:11 p.m. Reply

I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. www.kiziplay.us

seorankbuilder

seorankbuilder on March 5, 2017, 2:13 p.m. Reply

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it’s nice to find a website that details so much information about different artists. www.friv1000games.org

jams

jams on March 6, 2017, 9:15 p.m. Reply

This is a good post. This post gives truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good works. tattoo ideas

jams

jams on March 13, 2017, 7:52 p.m. Reply

i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future.. loan interest calculation methods

BMI CALCULATOR

BMI CALCULATOR on March 14, 2017, 12:25 p.m. Reply

Perfect website, thanks for sharing. bmi calculator

suryateja

suryateja on March 16, 2017, 5:58 a.m. Reply

Pretty impressive and looking to implement in 2 of my blogs to check the performance. and

8ballpoolmodapk

8ballpoolmodapk on March 18, 2017, 2:37 p.m. Reply

Hey, are you maybe interested in an 8 ball pool mod apk? We have longline technology for free.

8ballpoolmodapk

8ballpoolmodapk on March 18, 2017, 2:38 p.m. Reply

Hey, are you maybe interested in an 8 ball pool mod apk? We have longline technology for free.

jams

jams on March 21, 2017, 6:27 a.m. Reply

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that “The content of your post is awesome” Great work. Theme Score

8ballpoolmodapk

8ballpoolmodapk on March 21, 2017, 8:08 p.m. Reply

Download gta san andreas apk for free at gtasanandreasapk.com. Without paying the app store for the app!

jams

jams on March 28, 2017, 10:55 a.m. Reply

St. Outrage was presumably the collection that had the most abnormal kind of vibe for Metallica, however even that record was still inside the edges of their standard sound. On the off chance that you are on an errand of attempting to copy Kirk Hammett’s guitar tone, there is various things you can do to accomplish that objective. dimebag darrell rig rundown

jams

jams on March 28, 2017, 10:56 a.m. Reply

St. Outrage was presumably the collection that had the most abnormal kind of vibe for Metallica, however even that record was still inside the edges of their standard sound. On the off chance that you are on an errand of attempting to copy Kirk Hammett’s guitar tone, there is various things you can do to accomplish that objective. dimebag darrell rig rundown

jams

jams on April 2, 2017, 5:50 a.m. Reply

I went over this website and I believe you have a lot of wonderful information, saved to my bookmarks what is a short sale

jams

jams on April 5, 2017, 12:17 p.m. Reply

it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity.. chartered accountants

jams

jams on April 8, 2017, 6:55 a.m. Reply

I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. Rinjani Trekking

birikkiuch

birikkiuch on April 8, 2017, 11:41 a.m. Reply

Your blogs further more each else volume is so entertaining further serviceable It appoints me befall retreat encore.

jazzy

jazzy on April 10, 2017, 7:15 a.m. Reply

Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. free breast enlargement pill

chendler

chendler on April 11, 2017, 6:31 a.m. Reply

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. check out this

seorankbuilder

seorankbuilder on April 15, 2017, 8:52 a.m. Reply

thank you for your interesting infomation. kinja blog posts

mishirajput

mishirajput on April 15, 2017, 10:46 a.m. Reply

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can’t wait to read lots of your posts. helicopter training austin

seorankbuilder

seorankbuilder on April 15, 2017, 12:29 p.m. Reply

This is really a nice and informative. containing all information and also has a great impact on the new technology. Thanks for sharing it. Andy1st

seorankbuilder

seorankbuilder on April 15, 2017, 2:35 p.m. Reply

This type of message always inspiring and I prefer to read quality content. so happy to find good place to many here in the post. the writing is just great. thanks for the post. Sourajit Saha Contact

seorankbuilder

seorankbuilder on April 16, 2017, 7:36 a.m. Reply

I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. Pheromones for Men to Attract Women

mishirajput

mishirajput on April 17, 2017, 1:22 p.m. Reply

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information… plastic surgery

mishirajput

mishirajput on April 18, 2017, 8:00 a.m. Reply

Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can’t help but wonder. what about the other side? !!!!!!THANKS!!!!!! mold inspection near me

jams

jams on April 19, 2017, 10:45 a.m. Reply

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks… gummy to curb hunger

jams

jams on April 23, 2017, 11:03 p.m. Reply

Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. cheap vps dedicated servers

akmalaka

akmalaka on April 25, 2017, 4:31 a.m. Reply

Nice to be visiting your blog again, it has been months for me. Well this article that i’ve been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share. downlodable videos

seorankbuilder

seorankbuilder on April 25, 2017, 10:00 a.m. Reply

Please continue this great work and I look forward to more of your awesome blog posts. seo training dublin

seorankbuilder

seorankbuilder on April 26, 2017, 10:18 a.m. Reply

I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. essaytyper plagiarism

seorankbuilder

seorankbuilder on April 26, 2017, 11:46 a.m. Reply

This is a smart blog. I mean it. You have so much knowledge about this issue. and so much passion. You also know how to make people rally behind it. obviously from the responses. فلزیاب

seorankbuilder

seorankbuilder on April 29, 2017, 11:53 a.m. Reply

Some truly wonderful work on behalf of the owner of this internet site . perfectly great articles . appliance repair Moore Ok

seorankbuilder

seorankbuilder on April 30, 2017, 7:45 a.m. Reply

I got what you mean . thanks for posting .Woh I am happy to find this website through google. Austin Inventors and Entrepreneurs Association (AIEA)

Leave a Comment

Dan Wolfgang

Dan is an engineering creative and uses his vast knowledge of the web to solve unique client problems with specialized solutions. Complex or straightforward, his focus is to find the most efficient, functional, elegant, and stable solutions for each project. 10 years in web engineering and 14 more in the print publishing industry give him a special insight to the needs, restrictions, and workflows of content publishers, both traditional and new media. Dan is an active Movable Type community member who has written and contributed to countless plugins including some of the most popular: More Custom Fields, Poll Position, and Asset Image Quality.

Website: http://uinnovations.com
Twitter: @danwolfgang