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

4 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

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

Leave a Comment