Type
mt-search.cgi を使った検索をする際に、検索の対象を初期設定できます。初期値の straight では、ブログ記事が対象になります。値を tag に設定すると、ブログ記事などに設定されたタグを検索の対象とします。これらの値は、検索用フォームをカスタマイズする際に、hidden パラメーターとして指定することもできます。
<form method="get" action="<$MTCGIPath$><$MTSearchScript$>">
<input type="hidden" name="IncludeBlogs" value="<$MTBlogID$>" />
<input type="hidden" name="Type" value="straight" />
<label for="search" accesskey="4">Search this blog:</label><br />
<input id="search" name="search" size="20" />
<input type="submit" value="Search" />
</form>
使い方
Type straight
初期設定値
straight
Type と関連のある環境変数 (69)
- SupportDirectoryURL
- SupportDirectoryPath
- ThemesDirectory
- SearchCacheTTL
- SearchThrottleSeconds
- SearchResultDisplay
- SearchDefaultTemplate
- SearchMaxResults
- SearchAltTemplate
- SearchPrivateTags
- RsyncPath
- LDAPUserGroupMemberAttribute
- LDAPGroupNameAttribute
- LDAPUserFullNameAttribute
- LDAPUserEmailAttribute
- LDAPGroupMemberAttribute
- ExternalUserManagement
- ExternalGroupManagement
- LDAPAuthSASLMechanism
- LDAPAuthBindDN
- ExternalUserSyncFrequency
- LDAPGroupFullNameAttribute
- LDAPGroupIdAttribute
- LDAPUserIdAttribute
- LDAPAuthURL
- LDAPGroupFilter
- LDAPGroupSearchBase
- CommentSearchCutoff
- GooglePingURL
- RegexSearch
- SearchElement
- ExcludeBlogs
- NetPBMPath
- EnableArchivePaths
- Type
- SearchThrottleIPWhitelist
- SearchScript
- CSSPath
- PluginPath
- SearchSortBy
- CGIPath
- ExcerptWords
- MaxResults
- DBSocket
- SearchTemplatePath
- TempDir
- DBUmask
- PublishCommenterIcon
- SendMailPath
- AdminCGIPath
- SearchCutoff
- SearchSortOrder
- AltTemplatePath
- WeblogTemplatesPath
- StaticFilePath
- AssetCacheDir
- ImportPath
- UploadUmask
- CookiePath
- DefaultTemplate
- UseNFSSafeLocking
- AltTemplate
- TemplatePath
- StaticWebPath
- DirUmask
- HTMLUmask
- SearchNoOverride
- ResultDisplay
- IncludeBlogs

