<$mt:TagSearchLink$>

A variable tag that outputs a link to a tag search for the entry tag in context. The tag context is created by either an EntryTags or a Tags block.

Like all variable tags, you can apply any of the supported global modifiers to TagSearchLink to do further transformations.

The example below shows each tag in a cloud tag linked to a search for other entries with that tag assigned. It can just as easily be used to link entry tags within an EntryTags loop

    <h1>Tag cloud</h1>
    <div id="tagcloud">
        <mt:Tags>
            <h<$mt:TagRank$>>
                <a href="<$mt:TagSearchLink$>"><$mt:TagName$></a>
            </h<$mt:TagRank$>>
        </mt:Tags>
    </div>

The search link will look something like:

    http://example.com/mt/mt-search.cgi?blog_id=1&tag=politics

Using Apache rewriting, the search URL can be cleaned up to look something like:

    http://example.com/tag/politics

A URL like this would have to be built like this:

    <$mt:BlogURL$>tag/<$mt:TagName normalize="1"$>

And of course, you would have to create the .htaccess rules to translate this into a request to mt-search.cgi.

This page was last updated on 2007-10-01, 16:34.

4 Notes

This tag supports the MultiBlog template tag attributes blog_ids/include_blogs and exclude_blogs for aggregating across different blogs.

It would be helpful to provide an example of the mod_rewrite rule rather than simply saying "it can be done", which I find quite frustrating

Instructions for tag archives for Movable Type from the old MT beta blog:

there are two type of search links im my site :

1: http://mirsoft.net/cgi-bin/mt/mt-search.cgi?blog_id=1&tag=download 2:

http://mirsoft.net/cgi-bin/mt/mt-search.cgi?IncludeBlogs=1&tag=download

type 1 is: IncludeBlogs=1 type 2 is: blog_id=1

this two type makes Links homonymous But with two different addresses. in the google webmaster tools ,part :HTML suggestions ,This is a difficult to name of Duplicate title tags and i have about 2000 Duplicate title tags in google search, and this is not good for my page rank. help me please. my problem is in serach result template ,in the search page when i click on the any tags links this type of links is appear:IncludeBlogs=1 but from other pages appear :blog_id=1 What should I do? thanks

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.