<$mt:AdminCGIPath$>

Returns the value of the AdminCGIPath configuration setting. Otherwise, the value of the CGIPath setting is returned.

If the value of AdminCGIPath or CGIPath is:

http://www.domain.com/cgi-bin/mt/

Or:

/cgi-bin/mt/

Default use of:

<$mt:AdminCGIPath$>

Will output:

http://www.domain.com/cgi-bin/mt/

In the event that the configured path has no domain (ie, “/cgi-bin/”), the domain of the blog in context will be used.

The path produced by this tag will always have an ending ‘/’, even if one does not exist as configured.

Values

Output will be a full url to the directory where the Movable Type CGI scripts exist.

Example

Publish “edit” links in index templates:

<a href="<$mt:AdminCGIPath$><$mt:AdminScript$>?__mode=view&_type=template&id=<$mt:BuildTemplateID$>&blog_id=<$mt:BlogID$>">Edit</a>
This page was last updated on 2009-06-29, 15:21. [Edit]

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.