Help - Search - Members - Calendar
Full Version: Sorting information for a BookLog
Movable Type Community Forum > Additional Resources > Tips and Tricks
celina
Hi folks-
I'm currently setting up a BookLog utilizing nearly all of the fields MT has. My issue comes when trying to create index pages that sorts all of this information, by field, in ascending order.

Here is how the data is set up in each of the entries:
Title: title of the book, sorted using [MTEntries sort_by="title" sort_order="ascend"]
Category: status of the book (read, unread), unknown how to sort
Body: rating of the book (0-5), unknown how to sort
Excerpt: ISBN of book, sorting not needed
Keywords: author of book, sorted using [MTEntries sort_by="keywords" sort_order="ascend"]

Could anybody help me figure out a way to make index pages that sort the status of the book (Category) and/or the rating of the book (Body)? I know this may be possible with MySQL but I'm unfamiliar with that method.

Thank you so much!
celina
Does anybody have any ideas for this? Please? sad.gif
elisebauer
For the sorting of entries by category, try:
CODE
<MTCategories>
<h2><$MTCategoryLabel$></h2>
<MTEntries sort_by="title" sort_order="ascend">
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br />
</MTEntries>
<br />
</MTCategories>
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.