Movable Type Chapter Entry Tags·무버블 타입 태그관련 코드

 | TrackBacks (1)

 

Movable Type Chapter Entry Tags·무버블 타입 태그관련 코드

*닥스훈트 두마리 야간산책을 준비하고 있는 중이라 번역은 제공하지 않습니다. 

Readmore...

 

 

Chapter Entry Tags  In this section:


A variable tag that provides a count of entries on the current blog that have the entry tag in context assigned to them. The tag context is created by either an MTEntryTags or an MTTags block.

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

Example code

Within an MTEntries block right before the entry byline, you might put:

<p>
    This entry has been tagged (w/ entry counts noted):
    <MTEntryTags glue=", "><$MTTagName$> (<$MTTagCount$>)</MTEntryTags>
</p>

See the relevant section of Chapter 5.4 in the User and Administration Manual entitled "Using Template Modules" for more examples related to entry tags, including the creation of "tag clouds".

Also, please see the important performance note regarding where MTTags lists are best placed for optimum performance, also in Chapter 5.4 of the User and Administration Manual, under "Eliminating redundant publishing".

You can download the User and Administration Manual here.

A variable tag that outputs the ID of the entry tag in context. The tag context is created by either an MTEntryTags or an MTTags block.

This is not a particularly useful tag but is presented for those who, for example, might want to transfer data between installations or duplicate an installation using template tags.

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

A variable tag that outputs the name of the entry tag currently in context. The tag context is created by either an MTEntryTags or an MTTags block.

Optional attributes

  • quote - Adds double quotes around the any tag name which contains spaces
  • normalize - Returns the normalized version of the tag name stored in the system. The tag "Movable Type" would yield a normalized version of "movabletype".

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

Example code

The following prints out a list of tags used on a blog.

<p>
    The following tags are used on this blog: 
       <MTTags glue=", "><$MTTagName$></MTTags>
</p>

See the relevant section of Chapter 5.4 in the User and Administration Manual entitled "Using Template Modules" for more examples related to entry tags, including the creation of "tag clouds".

Also, please see the important performance note regarding where MTTags lists are best placed for optimum performance, also in Chapter 5.4 of the User and Administration Manual, under "Eliminating redundant publishing".

You can download the User and Administration Manual here.

A variable tag which returns a number from 1 to 6 (by default) which represents the rating of the entry tag in context in terms of usage where '1' is used for the most often used tags, '6' for the least often. The tag context is created by either an MTEntryTags or an MTTags block.

This is suitable for creating "tag clouds" in which MTTagRank can determine what level of header (h1 - h6) to apply to the tag. Please see the important note about including tag clouds on archive pages if you are considering such a thing.

Optional attributes

  • max - Allows a user to specify the upper bound of the scale.

Example code

The following is a very basic tag cloud suitable for an index template or, with some styling, a sidebar of any page.

<h1>Tag cloud</h1>
<div id="tagcloud">
    <MTTags>
        <h<$MTTagRank$>>
            <a href="<$MTTagSearchLink$>"><$MTTagName$></a>
        </h<$MTTagRank$>>
    </MTTags>
</div>

See the relevant section of Chapter 5.4 in the User and Administration Manual entitled "Using Template Modules" for more examples related to entry tags, including the creation of "tag clouds".

Also, please see the important performance note regarding where MTTags lists are best placed for optimum performance, also in Chapter 5.4 of the User and Administration Manual, under "Eliminating redundant publishing".

You can download the User and Administration Manual here.

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 MTEntryTags or an MTTags block.

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

Example code

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 MTEntryTags loop

<h1>Tag cloud</h1>
<div id="tagcloud">
    <MTTags>
        <h<$MTTagRank$>>
            <a href="<$MTTagSearchLink$>"><$MTTagName$></a>
        </h<$MTTagRank$>>
    </MTTags>
</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

See the relevant section of Chapter 5.4 in the User and Administration Manual entitled "Using Template Modules" for more examples related to entry tags, including the creation of "tag clouds".

Also, please see the important performance note regarding where MTTags lists are best placed for optimum performance, also in Chapter 5.4 of the User and Administration Manual, under "Eliminating redundant publishing".

You can download the User and Administration Manual here.

A container tags used for listing all previously assigned entry tags for the blog in context.

Optional attributes

  • glue - A text string that is used to join each of the items together. For example <MTTags glue=", "><$MTTagName$></MTTags> would print out each tag name separated by a comma and a space.

Example code

The following code is functional on any template. It prints a simple list of tags for a blog, each linked to a tag search.

<ul>
    <MTTags>
    <li>
        <a href="<$MTTagSearchLink$>"><$MTTagName$></a>
    </li>
    </MTTags>
</ul>

Using tags like MTTagRank and MTTagCount, you can make this simple code into a powerful looking and useful "tag cloud".

See the relevant section of Chapter 5.4 in the User and Administration Manual entitled "Using Template Modules" for more examples related to entry tags, including the creation of "tag clouds".

Also, please see the important performance note regarding where MTTags lists are best placed for optimum performance, also in Chapter 5.4 of the User and Administration Manual, under "Eliminating redundant publishing".

You can download the User and Administration Manual here.

10 Related Contents by Keyword

1 TrackBacks

Listed below are links to blogs that reference this entry: Movable Type Chapter Entry Tags·무버블 타입 태그관련 코드.

TrackBack URL for this entry: http://thelangolier.com/mt/mt-tb.cgi/485

Interactive Functional Anatomy Single User from Interactive Functional Anatomy Single User on February 13, 2009 2:20 AM

Description: Includes detailed multi-layer graphics of all areas of the human b Read More

About this Entry

This page contains a single entry by publish9 published on March 15, 2008 11:51 PM.

Fix my Movable type 4.0·무버블 타입 수정 was the previous entry in this blog.

≪명수, 더 닥스훈트·Myungsue the dachshund ≫- 오마이 닥스훈트 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

September 2009

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
2MB-blog

What am I doing..


FlickrBadge

publish9. Get yours at bighugelabs.com/flickr

RecentComments

Spotplex



Add to Technorati Favorites

RSSFEED

Powered by Movable Type 4.1

Stats Counter

Visitor Stats image
  • 90158

Powered by Visitor Stats

About Langolier

 

The Langolier Company was Blog about Photographic web2.0 with publish9.com 랭골리어 컴퍼니는 포토그래픽 웹2.0에 대하여 이야기했었다.

Chat with Me

QuinturaCloud

CreativeCommons

Creative Commons License
This weblog is licensed under a Creative Commons License.

Elsewhere

Find me on delicious Find me on Langolier Find me on flickr Find me on twitter Find me on youtube Find me on facebook Find me on msn Find me on technorati Find me on UStream.TV

Lee, Kanghee lives in Seoul, Korea and works for publish9 Studio and myspace korea-FOX INTERACTIVE MEDIA. He Blogs at theLangolier.com, keeps links at del.icio.us, uploads photos to Flickr,sends updates via Twitter, Share his stream on Ustream.TV, plays Scrabble on Facebook, myspace, vimeo and can be reached via email at Publish9[at]paran.com.

LinkAnother

page counter 믹시