Not a developer? Go to MovableType.com

Plugin and Theme Directory

Default Site Tags v1.0

By Jay Allen
Posted August 7, 2009.

Details

This is a very simple plugin which adds two template tags:

  • mt:SiteURL
  • `mt:SiteRoot``

These two tags correspond to the DefaultSiteURL and DefaultSiteRoot config directive settings in mt-config.cgi.

LICENSE

This program is distributed under the terms of the GNU General Public License, version 2.

INSTALLATION

Simply drop the directory plugins/DefaultSiteTags contained in this archive into your MT_HOME/plugins directory.

If you are running under FastCGI or other persistent environment, you will need to restart your webserver in order to activate the plugin in your Movable Type installation.

USAGE

In a typical setup when one blog publishes to the DefaultSiteRoot and others publish in subdirectories off of the root, mt:BlogURL is not predictable in global templates. If all blogs share CSS, Javascript, a site images directory, etc, and you don't want to hardcode URLs, these two configuration directives are your salvation.

However, the only way to access these values is via the much longer:

<$mt:Var name="config.DefaultSiteURL"$>
<$mt:Var name="config.DefaultSiteRoot"$>

Ick. Instead, we use:

<$mt:SiteURL$>
<$mt:SiteRoot$>

Much better...

CONFIGURATION

The tags output the values of the DefaultSiteURL and DefaultSiteRoot configuration directives. If these are not set, the tags output nothing.

SUPPORT

If you have additional feature requests or require support for an issue with this plugin, please contact the author.

Compatibility

Movable Type versions: 4.3


Back

41 Comments

digibet

digibet on April 28, 2016, 3:54 p.m. Reply

Very simple to install. Thanks

Jack from Casinohuone - 32red - Favbet - nesine - Tivoli casino - bovada

Shanon Fields

Shanon Fields on May 9, 2017, 3:53 p.m. Reply

Hi, I read that you said that this plugin was easy to install. When I try to install it I get an error and it tells me that it failed to install the plugin. I am new to Movable Type and would like to use it for my Rose site. If you can tell me what I am doing wrong that would be wonderful.

digibet

digibet on April 28, 2016, 3:55 p.m. Reply

Very simple to install. Thanks

Jack from Casinohuone - 32red - Favbet - nesine - Tivoli casino - bovada

christine

christine on July 5, 2016, 7:44 a.m. Reply

I just want to say thanks for your wonderful post, it is contain a lot of knowledge and information that i needed right now. Thanks! Y8 Gold

newstart028

newstart028 on July 6, 2016, 6:59 a.m. Reply

“Personal” elements include hand-written search, headings and comment form, and post-it note styled sidebar and date tags.192.168.1.1

Caroline11

Caroline11 on March 18, 2018, 8:12 a.m. Reply

This website contain good collection of plugins and software which we use for the sake of internet purpose. As we know that all development language use in different level of development. However, I need ca.edubirdie but there is good piece of content have this website regarding plugins.

Friv

Friv on May 27, 2018, 7:58 p.m. Reply

thank you for sharing with me. My best published and top rated juegosfriv2016.org juegosfriv2017.net friv4school2017.com on our web portal juegosfriv2018.net juegosfriv2019.com friv4school2018com.com Multiplayer games with ability to rate friv-2018.com friv-2017.com gryfriv5.com and comment.

johnb6174

johnb6174 on July 5, 2018, 11:52 p.m. Reply

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! new condo launch

johnb6174

johnb6174 on July 6, 2018, 1:56 p.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… Brazilian plastic surgeon

johnb6174

johnb6174 on July 6, 2018, 3:31 p.m. Reply

Very good written article. It will be supportive to anyone who utilizes it, including me. Keep doing what you are doing – can’t wait to read more posts. Dentist 77375

johnb6174

johnb6174 on August 4, 2018, 8:11 a.m. Reply

I felt very happy while reading this site. This was really very . mexico

johnb6174

johnb6174 on August 4, 2018, 12:34 p.m. Reply

Thank you for some other informative website. The place else may just I get that kind of information written in such a perfect method? I have a venture that I am simply now running on, and I’ve been at the glance out for such info. video

johnb6174

johnb6174 on August 4, 2018, 1:48 p.m. Reply

It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I wish to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read even more things about it! spiritual awakening movies

johnb6174

johnb6174 on August 4, 2018, 4:02 p.m. Reply

i am for the first time here. I found this board and I in finding It truly helpful & it helped me out a lot. I hope to present something back and help others such as you helped me. lessons

johnb6174

johnb6174 on August 4, 2018, 5:12 p.m. Reply

Cool stuff you have got and you keep update all of us. un curso de milagros

john

john on August 4, 2018, 6:01 p.m. Reply

Good post but I was wondering if you could write a litter more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it! online

johnb6174

johnb6174 on August 5, 2018, 6:47 a.m. Reply

Hi there! Nice stuff, do keep me posted when you post again teachings 

johnb6174

johnb6174 on August 5, 2018, 8:14 a.m. Reply

Good article, but it would be better if in future you can share more about this subject. Keep posting. david hoffmeister

johnb6174

johnb6174 on August 5, 2018, 9:51 a.m. Reply

I got what you mean , thanks for posting .Woh I am happy to find this website through google. online courses

john

john on August 5, 2018, 9:52 a.m. Reply

I learn some new stuff from it too, thanks for sharing your information. online

johnb6174

johnb6174 on August 5, 2018, 11:29 a.m. Reply

Good article, but it would be better if in future you can share more about this subject. Keep posting. non duality teachers

john

john on August 5, 2018, 12:57 p.m. Reply

Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. teacher training

johnb6174

johnb6174 on August 5, 2018, 4:53 p.m. Reply

Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. מנעולן בקריות

johnb6174

johnb6174 on August 12, 2018, 10:27 a.m. Reply

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. Onlinr Quran lessons

johnb6174

johnb6174 on August 13, 2018, 1:55 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. thealmostdone

john

john on August 13, 2018, 3:06 p.m. Reply

Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. techinexpert.com

johnb6174

johnb6174 on August 20, 2018, 9:48 a.m. Reply

If more people that write articles really concerned themselves with writing great content like you, more readers would be interested in their writings. Thank you for caring about your content. search engine marketing

johnb6174

johnb6174 on August 20, 2018, 11:35 p.m. Reply

Just admiring your work and wondering how you managed this blog so well. It’s so remarkable that I can’t afford to not go through this valuable information whenever I surf the internet! havaianas

johnb6174

johnb6174 on August 21, 2018, 12:17 a.m. Reply

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

johnb6174

johnb6174 on August 21, 2018, 2:05 p.m. Reply

The information you have posted is very useful. The sites you have referred was good. Thanks for sharing… Just Cannabis

johnb6174

johnb6174 on August 23, 2018, 8:05 p.m. Reply

I really enjoyed reading this post, big fan. Keep up the good work and please tell me when can you publish more articles or where can I read more on the subject? jual mobil bekas

johnb6174

johnb6174 on August 24, 2018, 2:16 p.m. Reply

If you set out to make me think today; mission accomplished! I really like your writing style and how you express your ideas. Thank you. https://www.mosscolella.com/

johnb6174

johnb6174 on August 26, 2018, 8: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. Carpet Cleaning

Peteseo

Peteseo on September 25, 2018, 8:19 p.m. Reply

I discovered your website website on yahoo and check several of your early posts. Keep the top notch operate. I recently additional encourage RSS feed to my MSN News Reader. Seeking toward reading far more from you finding out at a later date!… Calvert

Peteseo

Peteseo on September 25, 2018, 8:22 p.m. Reply

I discovered your website website on yahoo and check several of your early posts. Keep the top notch operate. Calvert

Rihankhan

Rihankhan on October 4, 2018, 1:56 p.m. Reply

Really one of the best plugins for custom websites. Works as expected, allowing you to add a custom css file without going into the template.

johnb6174

johnb6174 on October 8, 2018, 11:22 a.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.. inground pools

johnb6174

johnb6174 on October 11, 2018, 12:22 a.m. Reply

All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks the jovell

Peteseo

Peteseo on October 12, 2018, 11:03 p.m. Reply

Simply respecting your work and considering how you dealt with this web journal so well. It’s remarkable to the point that I can’t stand to not experience this significant data at whatever point I surf the web! Crosby

johnb6174

johnb6174 on October 12, 2018, 11:34 p.m. Reply

Your website is really cool and this is a great inspiring article. Juniper hill

johnb6174

johnb6174 on October 13, 2018, 4:41 p.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.. The Woodleigh Residences

Leave a Comment