• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part: V Appendixes > Miscellaneous Tags

Miscellaneous Tags

The template tags in Table B.9 are ones that don't fall into any of the previous eight categories.

Table B.9. Miscellaneous Tags
Tag NameTag TypeDescription
MTCGIPathVInserts the absolute URL path to the directory containing Movable Type's CGI scripts, set by the CGIPath directive in mt.cfg.
MTCommentScriptVInserts the filename of the comment script—either the default value, mt-comments.cgi, or the value of the CommentScript directive specified in mt.cfg.
MTDateVInserts the current date and/or time. Attributes:

format: Controls how the date is written. (See “Formatting Dates” later in this appendix.)

language: Specifies in what language the date is to be written.

MTElseCCThe contents of this tag are evaluated if the condition of its parent conditional container was not met. For example, if placed inside an MTEntryIfAllowComments tag, it would be evaluated if the current entry had comments disabled.
MTGetVarVInserts the value of a variable previously set with MTSetVar. Attributes:

name: Specifies the name of the variable to be retrieved.

MTGoogleSearchLCIterates over the results of a search performed through the Google API. The attributes excerpt, keywords, query, related, and title cannot be combined. Attributes:

excerpt: Set to 1, the excerpt text of the current entry will be sent as the search query.

keywords: Set to 1, the keywords of the current entry will be sent as the search query.

query: Value specifies the term or terms that will be sent as the search query.

related: Set to 1, search will return pages Google determines to be related to whatever page specified by the Site URL field on the Weblog Config > Core Setup screen. Alternatively, this attribute can be explicitly set to a URL to be used for the query.

results: Specifies the number of search results to be returned.

title: Set to 1, the title of the current entry will be sent as the search query.

MTGoogleSearchResultVInserts the piece of data specified by the property attribute from the current Google search result. Attributes:

property: Specifies the field in the current result to be displayed. Acceptable values are

snippet
summary
title
URL

MTImageHeightVInserts the height of the uploaded image when used in the Image Popup template.
MTImageURLVInserts the absolute URL of the uploaded image when used in the Image Popup template.
MTImageWidthVInserts the width of the uploaded image when used in the Image Popup template.
MTIncludeVInserts the contents of a specified file or template module. Attributes:

file: Specifies the file to be included as a path below your Local Site Path or Local Archive Path directories, or as an absolute path to the file on the file system.

module: Specifies a particular template module to be included. These can be created on the Templates screen of the weblog's administration interface.

MTLinkVInserts the absolute URL to either a particular entry or index page within the current weblog. Attributes:

entry_id: Specifies the ID of the entry the link should be created for.

template: Specifies the index template the link should be created for.

MTPublishCharsetVInserts the character set used by the weblog. The default value is iso-8859-1, but it can be overridden with the PublishCharset directive in the mt.cfg file.
MTSetVarASets the value of a variable that can later be retrieved with MTGetVar. Attributes:

name: Specifies the name of the variable to set.

value: Specifies the value the variable should be set to.

MTStaticWebPathVInserts the URL to the weblog's static resources. The default value is the same directory Movable Type was installed into, but it can be overridden with the StaticWebPath directive in the mt.cfg file.
MTTrackbackScriptVInserts the filename of the TrackBack script—either the default value, mt-tb.cgi, or the value of the TrackbackScript directive specified in mt.cfg.
MTVersionVInserts the version number of the Movable Type install.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint