Movable Type Enterprise Documentation

« MTEntryEditLink | Up | MTGoogleSearchResult »

Chapter Search

MTGoogleSearch

Creates the search context by using the Google API to obtain results for a particular query or for pages that are similar to a particular entry. Once retrieved, the contents of this tag are looped through for each result. The type and parameters of the search are determined by the following supported attributes.

This tag is only recognized in search templates.

Attributes:

  • excerpt - Takes a boolean value. If set to 1 (true), the excerpt of the entry in context will be used as the query.
  • keywords - Takes a boolean value. If set to 1 (true), the keywords of the entry in context will be used as the query.

Is there a limit on words???

  • query - Issues a specific search to Google.
  • related - Return results that are similar to a certain page. The value of this parameter can be a URL or 1. Passing a value of 1 will cause your Site URL to be used. (You should have set your Site URL in your Weblog configuration — if not you'll have to do so to make use of this option.)
  • results - An integer between 1 and 10 specifying the number of search results to insert.
  • title - Takes a boolean value. If set to 1 (true), the title of the entry in context will be used as the query.

The attributes query, related, title, and excerpt are mutually exclusive.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or question. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Enterprise Support.

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.