Making an enty list, devided by "tags"

| No Comments | No TrackBacks

Yujiro Araki of "Koiki-Kukan" wrote a method of making an entry list, divided by "tags".

This is a quotation of his entry.

<mt:Entries>
  <mt:EntryIfTagged>
    <mt:EntryTags>
      <mt:TagName setvar="tag_name" />
      <mt:SetVarBlock name="entry_title">
        <li><a href="<mt:EntryPermalink />"><mt:EntryTitle /></a></li>
      </mt:SetVarBlock>
      <mt:SetVar name="data{$tag_name}" value="$entry_title" append="1" />
    </mt:EntryTags>
  </mt:EntryIfTagged>
</mt:Entries>
 
<mt:loop name="data">
<ul><mt:GetVar name="__key__" />
  <li>
    <ul>
      <mt:GetVar name="__value__" />
    </ul>
  </li>
</ul>
</mt:loop>

No TrackBacks

TrackBack URL: http://www.mt-j.info/mt/mt-tb.cgi/48

Leave a comment

About this Entry

This page contains a single entry by nick published on February 24, 2010 10:00 PM.

Four CMS and their experts will gather at Osaka was the previous entry in this blog.

The website of the "Newsweek Japanese edition" is beeing published by MT. is the next entry in this blog.

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