You can use "else" statement in your <mt:entries> block tags

| No Comments | No TrackBacks
Yujiro Araki, an author of "Koikik-Kukan", wrote an "else" usage in MT's block tag.

In <mt:entries>---</mt:entries>tag, you can use "else" statement to discriminate your entry data.

Here is a sample code quoted from Koiki-Kukan's entry.

<mt:Entries>
<mt:EntryTitle />
<mt:else>
No Data.
</mt:Entries>
He said it returned a right results.

Also he tried to write like this and it worked correctly.

<mt:Entries>
<mt:EntryTitle />
<mt:Comments>
<mt:CommentBody />
<mt:else>
No Comment.
</mt:Comments>
<mt:else>
No Entry.
</mt:Entries>


No TrackBacks

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

Leave a comment

About this Entry

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

"ViewSite" enables you to view your site from your "System Overview" screen was the previous entry in this blog.

"Protection" plugin was released at "Junnama Online" is the next entry in this blog.

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