Search

Phrase

Display

 

Category

   

Order

 

Pagesize

Results

If the result list is too large, please consider these hints

  • Reduce the number of websites.
  • Add more keywords.
  • Use quotes for building terms from keywords. For example, the phrase banner image searches for all articles containing both words. However, "banner image" searches for the exact two-word phrase.
146 hits12345678

1. FAQ: Sorting the Categories and avoid alphabetical Sequence

Movable Type Weblog, Tutorials, 25 KB, 1529 words

Question

I have a couple of categories. When using the MTCategories tag, these are sorted by name. However, I preferred if I could choose the order manually. There is a logical order of the categories, and the categories should be listed in that order. Can it be done?

Answer

Movable Type does not have a built-in function for achieving an arbitrary ordering of the category list. We have to use a plugin for that.

The idea for implementing the ordering is as follows: we will prefix all category names with some text, which is removed right before the category name is output to HTML. As an example please look at my top-level categories in the sidebar. These are... • Basics • Installation...

continue reading ...

2. Sorting Categories Any Way You Please

MovableTweak, Tutorials, 28 KB, 1279 words

Strange adding a category called categories... but I digress.

Two Roads Diverged...

I've been working on a new blog in which I want to sort the categories in order other than alphabetical. Now, there is an quick and ugly solution, and there is a time-consuming and beautiful solution. First, we'll look at the ugly way of sorting your categories of the U.S. Presidents:

The Easy, Ugly Way

Create first category for Washington, only call it 01:Washington. Create second category for Adams... name it 02:Adams. So and so on through the U.S. Presidents. When Movable Type builds your page, it catches those initial numbers and puts them in order by number. A...

continue reading ...

3. Sort Entry Listing

Movalog, Tutorials, 34 KB, 1518 words

On the forums, someone recently commented on how the listings in MT could be improved with greater sorting flexibility. I thought that it was a very good idea and so after a bit of hacking managed to get the entry listings to be sorted, it would be easy to adapt this for the comments and trackbacks listing.

This hack will add ascending and descending sorting capabilities to the title and date fields. The rest you can use the Filter option for.

First, you'll need CMS.pm, around line 2411 in the list_entries sub, find the following

my %arg = ( 'sort' => 'created_on', direction => $sort_direction, ($limit eq 'none' ? () : (limit =>...

continue reading ...

4. Staggered Category List

Movalog, Tutorials, 30 KB, 1205 words

UPDATE: No more CSS, have MT auto indent.

The "Primary Category" drop down menu just lists the categories sorted alphabetically and doesn't obey the category heirarchies you may have setup. This is especially annoying if you have several similarly named sub categories under different parent categories. So here's a hack that will change the way that field works, the categories will now obey the category heirarchy as shown in the screenshot (click for a larger view) It's probably best to note that I'm not the most perl savvy and this code may not be the most efficient/quickest/best way to do it but it works for me.

You'll need CMS.pm, open it up. Replace everything between

## Load...

continue reading ...

5. Subcategory Archives

Six Apart User Manual, Manuals, 40 KB, 914 words

A specialized version of MTEntries that is aware of subcategories.

Attributes: • category - The value of this attribute is a category label. This will include any entries to that category and any of its subcategories.

Since it is possible for two categories to have the same label, you can specify one particular category by including its ancestors, separated by slashes. For instance if you have a category "Flies" and within it a subcategory labeled "Fruit", you can ask for that category with category="Flies/Fruit". This would distinguish it from a category labeled "Fruit" within another called "Food...

continue reading ...

6. Displaying Entries

Six Apart User Manual, Manuals, 26 KB, 1068 words

Displaying Entries

Problem

You need to display entry data in your published pages.

Solutions

Use the template tags that are prefixed with MTEntry.

Discussion

Entry tags can be used to display the contents of an entry and its related information. These tags can be used in MTArchiveList or MTEntries tag contexts. Entry tags may also be used anywhere in a Individual Archive template.

Here are some of the more common Entry tags used in templates: • MTEntries

MTEntries is the most powerful and adaptive template tag in Movable Type. It is a container tag representing a list of...

continue reading ...

7. Category Customizations

Learning Movable Type, Tutorials, 23 KB, 1156 words

One area where plugins have greatly enhanced MT functionality is in categories. Here's a list of some of the things you can do:

How to exclude entries of certain categories from lists of entries. Say you want to list out your 20 most recent entries in your sidebar, except for the entries in the Special Announcements category. This is easy enough to do with the Exclude Categories plugin. The code would look like this:

<MTEntriesExCat category="Special Announcements" lastn="20"> <a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br /> </MTEntriesExCat>

How to list entries only from certain categories. This trick doesn't require a plugin at all. Just add the category attribute after the MTEntries tag like so:...

continue reading ...

8. Understanding the Category Listing Code

Learning Movable Type, Tutorials, 32 KB, 2089 words

This tutorial is co-authored by LMT guest author Chad Everett of Everitz Consulting and Elise Bauer of elise.com.

Movable Type allows you to create categories and sub-categories for organizing your entries. The default MT3.2 Main Index template includes code to list these categories in the sidebar section. This tutorial will attempt to explain the tags used in this code and how they work together.

Categories, Sub-categories, Parent, Child, and Levels

The only difference between a category and a sub-category is that the latter will always have a "parent" category. The sub-category is still a category, and everything else remains the same as any other category. But by having...

continue reading ...

9. Recent Comments

Learning Movable Type, Tutorials, 26 KB, 1090 words

Updated. Originally posted April, 2004

Adding a Recent Comments section to your weblog is easy and straightforward. There are two basic approaches. The first is to list the last N number of recent comments; the second the last N most recently commented on entries.

The most recent comments

In this example of Recent Comments the last 10 comments are listed, regardless of how many times there may have been comments to the same entry. The comment authors names are linked to their respective websites, if they have them, and the entry title is linked to the author's comment in the entry.

For most recent comments like shown in the example to the left, add the following code to the...

continue reading ...

10. Entry Archives

Six Apart User Manual, Manuals, 71 KB, 1457 words

A container tag whose contents will be displayed if the entry in context was posted on a different day than the following/next entry in the list.

Back to top | Permalink | Comments (0)

MTDateHeader

...

continue reading ...

11. Grouping a List of Entries by Month

Movable Type Weblog, Tutorials, 29 KB, 1997 words

It is a common scenario to have a list of entries sorted by date of publication. As this list may be rather long, it is reasonable to group entries and mark each group with a distinct group header. If you want to group by day, you can use the MTDateHeader tag for this task. However, what can be done, if you prefer to group by months?

An example

Suppose you have a couple of entries. Then you might want to create a structured list as follows:

Jan 16th, 2005 - First entry from Jan 16th, 2005 - Second entry from Jan 16th, 2005 - Third entry from Jan 16th, 2005 Jan 20th, 2005 - First entry from Jan 20th, 2005 - Second entry from Jan 20th, 2005 Feb 3rd, 2005 - First entry from...

continue reading ...

12. Dynamic Linked List Boxes: Categories and Entries

MovableTweak, Tutorials, 30 KB, 1901 words

Movable Type is being used to store a list of classes, and we need to make those class titles available in a form field (class registration) as a dynamically linked list box. The user will be presented with two list boxes, the first with a list of categories, the second (which is disabled until a category is chosen) with a dynamically generated list of the titles in the selected category.

Ingredients

We're going to need two important things here. First, a handy DHTML script from Xin Yang called Chained Selects that's going to power our linked list boxes. The script that you'll be dropping into your directory is called chainedselects.js.

Second, a javascript file...

continue reading ...

13. MT Blogroll 2.11

Movalog, Tutorials, 31 KB, 1224 words

This is a bug fix release that fixes some major bugs with the dynamic templating tags. A big thank you to all the folks that reported this bug, sorry it took me so long to find the bug! Go grab the update.

continue reading ...

14. Supplemental Category Tags

Brad Choate, Plugins, 109 KB, 3662 words

Here's a little plugin that provides some new Category tags for Movable Type.

Availability

You can download this plugin from here: mtcatx-1_5.zip

Requirements

The following are requirements for using this plugin: • Movable Type 2.21 or later • MT-Regex (if using the 'pattern' attribute of the IfCategory or IfPrimaryCategory tag).

Installation

To install, place the 'catx.pl' file in your Movable Type...

continue reading ...

15. 2.0b1 (2002.02.18)

Six Apart User Manual, Manuals, 29 KB, 1392 words

2.0b1 (2002.02.18)

• Lots of changes to the UI: leftnav, topnav, edit-entry screen, new-entry screen, etc. • Blog Editing Menu has now changed greatly to provide space for a welcome message (editable in blog config), blog stats, and links to 5 most recent posts and comments. • Added the ability to do NFS-safe database locking using .lock files and link(). This is not something most people should worry about; if it affects you, it's likely that you will know it. :) Thanks to Kelsey Cummings for ideas and code. • Hold and Release are now Draft and Publish...

continue reading ...

16. Moving an Entry from One Blog to Another

Learning Movable Type, Tutorials, 24 KB, 1132 words

For those of you with multiple MT weblogs, have you ever wanted to move an entry from one blog to another? or the entries from only one category from one to another weblog? You can copy the entries from the first weblog and paste them into the second, but how to move the associated comments or trackbacks?

Here's one fairly straightforward method.

1. Create a new index template in the weblog that contains the entries you wish to move. Give the template name any name you wish. Call the output file mt.txt. Copy and paste the following code into the new index template:

<MTEntries lastn="1000" sort_order="ascend" category="Your Category Name Goes...

continue reading ...

17. Posting Entries Archives

Six Apart User Manual, Manuals, 53 KB, 4094 words

All roads in weblogging lead to posting entries, for without posted entries there is no weblog. It should come as no surprise that the Entries Listing and New/Edit Entry screens are where most users will find themselves when working with Movable Type.

In these screens a user can view what entries are in a weblog, filter them based on certain criteria, make new posts and edit existing ones.

Entries Listing

The Entries Listing screen displays either all the entries for the weblog or just the entries made by you. What gets displayed depends on whether or not you have been granted Edit All Posts access.

...

continue reading ...

18. Posting a New Entry

Six Apart User Manual, Manuals, 25 KB, 982 words

Posting a New Entry

Problem

You want to post a new entry.

Solution

Click the New Post button in the Weblog Toolbar or use a Quickpost bookmarklet.

Discussion

Since entries are what weblogs are all about, it should come as no surprise that there are a number of ways to create them in Movable Type.

The two most likely ones are either to use the New Post button in the Weblog Toolbar or use a Quickpost bookmarklet that MT can help you create. See "Making posts quickly from your browser" for more on Quickposts.

When creating a new entry, you will have the chance to set the...

continue reading ...

19. 3.16 (2005.04.13)

Six Apart User Manual, Manuals, 30 KB, 1480 words

3.16 (2005.04.13)

Security

• Made several important improvements with regards to application authentication and security.

Notifications

• Fixed ``Send Notifications'' feature for multiple recipients. • Fixed a bug where comment notifications weren't being sent for some moderated comments.

Error checking

• Improved validation of user input in many places. Leading and trailing whitespace is trimmed from author names, category names, and blog names. None of these can be left blank except for a known issue with editing the...

continue reading ...

20. A Tag within a Tag

Movable Type Weblog, Tutorials, 21 KB, 1106 words

In Movable Type, we use tags for defining the flow within a template and for accessing the database. You can influence a tag's behavior with the help of attributes. These attributes define a value for some parameter.

Unfortunately, the value for an attribute may only be a constant. However, you will sometimes have the need for setting the value to the result of another tag. Movable Type will not support such a situation, but a plugin will help.

An Example

Suppose you have a template module that you want to include from many different places. For example, you want to call this module from both an individual entry archive and the main index. Inside the template, you then want to...

continue reading ...

Comments

You want to post some comment? Please use the announcement post on the Movable Type Weblog.

If you want to give some feedback concerning a specific query, please use the feedback button that is shown after a search has completed.

mgs | September 27th 2005