stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


Cruft-free URLs in Movable Type







Cruft-free URLs in Movable Type

Cruft-free URLs in Movable Type 01/08/2004 08:12 PM

best practices are a good thing. i'm slowing getting there and i think MT is too.




This is a GrokNews Entry: (what is grok?)





Similar Items

Cruft-free URLs in Movable Type

Grok Headline matches for Cruft-free URLs in Movable Type

Friendly URLs in Movable Type


Friendly URLs in Movable Type 02/01/2005 08:40 PM
Arve has written a very nice tutorial covering how to set up Movable Type to use search engine and user friendly url's. Not only does he show how to set up Movable Type so you can customise the url's yourself,...

Slugs: Decrufting Movable Type URLs


Slugs: Decrufting Movable Type URLs 02/01/2005 10:08 PM
A tutorial on how to migrate from the old, numeric Movable Type URIs, to search-engine and user-friendly URLs without file extensions, and with proper, custom slug text.

Movable Type Publishing Platform:
Movable Type 3.11 Released: Bugs fixed


Movable Type Publishing Platform:
Movable Type 3.11 Released: Bugs fixed
09/04/2004 05:18 PM
Movable Type 3.11 Released: Bugs fixed .. released

movabletype.org/news/2004/09/movable_type_311_released.shtm l
track this site | 3 links


Movable Type Publishing Platform:
Movable Type 3.1 Launched


Movable Type Publishing Platform:
Movable Type 3.1 Launched
08/31/2004 05:31 PM
Movable Type 3.1 Launched .. new version

movabletype.org/news/2004/08/movable_type_31_launched.shtml< br />track this site | 4 links


Movable Type Publishing Platform:
Movable Type 3.14 released


Movable Type Publishing Platform:
Movable Type 3.14 released
12/22/2004 01:05 AM
Movable Type Publishing Platform: Movable Type 3.14 released .. new version of Movable Type

movabletype.org/news/2004/12/movable_type_314_release.shtml
track this site | 4 links


Movable Type News: Workflow for Movable
Type released


Movable Type News: Workflow for Movable
Type released
04/15/2005 10:47 PM
Workflow, a new plugin for Movable Type 3.1x, has just been released by David Raynes. While we don't usually feature new plugins as part of our news about the Movable Type platform, we thought it was worth pointing out because...

Webl0gs.us: free Movable Type bl0g
hosting


Webl0gs.us: free Movable Type bl0g
hosting
11/05/2003 08:41 AM
Weblogs.us: free Movable Type blog hosting .. hosting

weblogs.us
track this site | 5 links


"Webl0gs.us: free Movable Type bl0g
hosting"


"Webl0gs.us: free Movable Type bl0g
hosting"
11/05/2003 09:27 PM

Movable Type Publishing Platform:
Movable Type 3.1: What's New


Movable Type Publishing Platform:
Movable Type 3.1: What's New
07/30/2004 05:26 PM
Movable Type Publishing Platform: Movable Type 3.1: What’s New .. new version of Moveable Type

movabletype.org/news/2004/07/movable_type_31_whats_new.shtml
track this site | 4 links


Movable Type News: Movable Type 3.16
released


Movable Type News: Movable Type 3.16
released
04/18/2005 04:41 PM
The Movable Type team has been hard at work and we have some very exciting things coming in the 2005 release schedule. To kick things off we are proud to introduce Movable Type 3.16. Movable Type 3.16 sports significant improvements...

Movable Type News: Movable Type 3.17
released


Movable Type News: Movable Type 3.17
released
06/06/2005 12:11 AM
Today we are releasing Movable Type 3.17. This release addresses four issues that do not affect the majority of installations, but are critical for users with certain configurations. Version 3.17 is not a required upgrade if your Movable Type installation...

Seekrit Royal Mail site lets you look up
cruft-free postcodes


Seekrit Royal Mail site lets you look up
cruft-free postcodes
04/16/2004 11:50 AM
The UK Royal Mail has redesigned its site in craptacular, non-accessible glory, shutting off people using assistive devices from looking up postcodes. The official line of the post office is that Britons "begin to notice dramatic improvements in accessibility in the next two months." As NTK points out, though, the old, lynx-friendly site is still accessible at a s33kr1t URL. Link (via NTK)

Movable Type 3.1


Movable Type 3.1 07/27/2004 12:42 AM

Six Apart has announced what will be included in MT 3.1 I am highly disappointed that the feature list is not longer. Time will tell if they are able to keep up with the competition. [MovableTyp e]


Movable Type Pro


Movable Type Pro 03/13/2003 10:15 AM
Now that version 2.6 is released, we're pleased to announce that Movable Type Pro is in development for a summer...

Movable Type 3.1: What's New


Movable Type 3.1: What's New 07/27/2004 09:21 PM
Following Ben and Mena’s demonstration on Friday at the BlogOn conference, we’re glad to give everyone a small peek at...

"SMI und Movable Type 3.0"


"SMI und Movable Type 3.0" 04/27/2004 03:55 PM

Movable Type RIP


Movable Type RIP 05/13/2004 10:48 AM
I'm done with Movable Type. After months of little useful communications about their plans, Ben and Mena have for all intents and purposes ditched the free version of their once-shining weblogging software. Now, MT is a "publishing platform" that costs at least $69 (with limited functionality). Lucky for us that, while MT slept, we have discovered a much improved and free Blogger, a truly open source WordPress, and a similarly priced but more powerful ExpressionEngine.

Get Movable Type


Get Movable Type 05/13/2004 03:43 PM
acceso a las licencias completas .. announced their pricing scheme .. new pricing structure .. Movable Type Free .. Preisliste .. limitless

secure.sixapart.com
track this site | 9 links


"Movable Type 3.0"


"Movable Type 3.0" 05/15/2004 02:22 PM

"Movable Type 3"


"Movable Type 3" 06/03/2004 12:52 AM

How I am using Movable Type


How I am using Movable Type 05/18/2004 04:20 AM
In answer to Mena's question regarding Movable Type, asking "How are you using the tool?", I thought I'd explain a...

Movable Type 3.0


Movable Type 3.0 12/22/2003 05:37 AM
We realize that official news has been scarce over the last 6-9 months. During this time, our company has grown...

"Movable Type 2.64"


"Movable Type 2.64" 12/17/2003 03:46 PM

Movable Type News


Movable Type News 05/13/2004 04:57 PM
dernire mouture de l'outil de blogging MovableType .. Movable Type 3.0 Developer Edition .. Six Apart announced .. out

movabletype.org/news/2004_05.shtml#001048
track this site | 6 links


Movable Type SOLD OUT!?!


Movable Type SOLD OUT!?! 05/16/2004 12:42 AM
advocated their original position .. asterisk: MovableType SOLD OUT .. Asterisk

7nights.com/asterisk/archives/movable_type_sold_out.php
track this site | 5 links


Plug In to Movable Type


Plug In to Movable Type 05/17/2004 11:53 AM
the hard part is choosing between dual G5s or dual LCD monitors

Movable Type 3.0 Controversy


Movable Type 3.0 Controversy 05/17/2004 04:35 PM

MovableTyp e Madness: Dean over at blogs4God presents a really good wrap-up of the furor over the new Movable Type release.

Unbeknowst to me, Six Apart made a change over the weekend to say that mutiple Weblogs in MT used to create one site (for instance, if you have another blog to handle static pages for your site), do not count towards the Weblog limit in the license. They also removed a single CPU restriction that they said was in there by mistake, are allowing you to purchase additional blog/author packs for $10 each, and have increased the number of authors allowed in the mid-level version from 3 to 5.

Don Park links to some good resources as well, including this very wise column by Timothy Appnel over at O'Reilly:

As a developer and one who makes a living writing code, this reaction to Six Apart's new licensing is really disheartening and on a certain level frustrating to see. I am a firm believer and backer of free software. [...] I've personally released quite a bit of open source code myself and will continue to do so. However this apparent expectation of the vocal part of community that it is their right to have all great works of software at no cost is bothersome. If users don't have the funds or won't pay on principle for my time, effort or talent – how do I eat?

He makes a good point. Not everything in the world can be free, as much as we would like it. Yes, I love free software, but I also know when stuff is worth paying for. I'm reminded about what Nick Bradbury wrote in the pre-release FAQ to FeedDemon:

Will FeedDemon be free? Will it be open source? Sorry, no. I have nothing against open source, but I also have two kids to feed :)

I personally don't have a problem with Six Apart charging for this version. Movable Type was a gift so far, and I guess I never expected it to be free forever. I think they could have priced it a little lower, but it's still worth it.

Click here to comment on this entry


Movable Type 3.0 and TypeKey


Movable Type 3.0 and TypeKey 04/09/2004 03:56 PM
We've started our third round of testing of Movable Type 3.0. With this round, we've posted more information about the...

Movable Type Upgrading


Movable Type Upgrading 03/11/2003 09:43 AM
I always wait a while to upgrade Movable Type (the software I use to publish this site). The wisdom of this approach was borne out when a security fix had...

Movable Type 3.0 and Eating


Movable Type 3.0 and Eating 05/13/2004 01:51 PM
tim appnel is a developer who makes money providing services around Movable Type

Breadcrumbs in Movable Type


Breadcrumbs in Movable Type 05/05/2004 02:18 PM

P. Obels asked

How do you get the links on top of your site in movabletype which point out where you are?

like:

Home » Our Thinking » Measure Twice » Archive » Tools and Utilities

Since he’s not the first person who’s asked, and I’m getting tired of re-writing the answer, I’m blogging it so I can simply point people here.

The short answer is: manually.

Each MT template has the breadcrumbs manually defined. The only variable part of the breadcrumb is (in most templates) the last item in the list. So my archive template that creates both category and monthly archives has this in it:

<p class="breadcrumb"><a href="/">Home</a> &raquo; <a href="/thinking/">Our Thinking</a> &raquo; <a href="/blog/">Measure Twice</a> &raquo; <a href="/blog/archives/">Archive</a> &raquo; <MTArchiveTitle></p>

And the individual archive template contains

<p class="breadcrumb"><a href="/">Home</a> &raquo; <a href="/thinking/">Our Thinking</a> &raquo; <a href="/blog/">Measure Twice</a> &raquo; <MTEntryTitle></p>


Movable Type/Safari Bug


Movable Type/Safari Bug 05/09/2004 04:50 AM
I apologize to everyone who arrived here because their news reader told them that I updated the previous entry. I... (93 words)

Movable Type 3.15 released


Movable Type 3.15 released 02/01/2005 08:54 PM
Version 3.15 fixes a vulnerability in the mail sending packages for all Movable Type versions in which the user has...

Movable Type Scaling


Movable Type Scaling 11/05/2003 03:39 PM
MovableType Scaling problems. Metablogging this for people I know who use MT but might miss this. [Radio Free Blogistan]

Crossposter for Movable Type


Crossposter for Movable Type 12/30/2004 08:58 AM
Some code, then: Crossposter for Movable Type. I have write access to quite a few weblogs (more than in that code, by miles, actually), and I like to write to all of them. But I've found a curious psychological drawback...

Movable Type 3.01d (bug fixes!)


Movable Type 3.01d (bug fixes!) 07/11/2004 06:34 AM
atest version of Movable Type .. entry on the MT Site

movabletype.org/news/2004_07.shtml#001138
track this site | 3 links


Movable Type 3.01D bug fix release


Movable Type 3.01D bug fix release 07/09/2004 09:45 PM
We've just released Movable Type 3.01D. You can download the new version by logging into your Movable Type Account...

Movable Type RIP | Metafilter


Movable Type RIP | Metafilter 05/14/2004 01:39 AM
Metafilter thread on Movable Type going to a pay model .. that just isn't good enough .. Answer

metafilter.com/mefi/33072
track this site | 5 links


Using PHP for Movable Type Searches


Using PHP for Movable Type Searches 07/04/2004 01:38 PM

A lot of people want to roll their own search with Movable Type. Us, for instance — Gadgetopia has a two-tiered search system based on whether the search term appears in the title, keywords, or body of the entry (see this post for more information).

Our search is done in with SQL and PHP, abandoning the MT search system completely. The probem with this method is rendering the search results. If you don't use MT, then you lose two things:

(1) Auto-creation of the permalink. The URL isn't stored anywhere in the database, so you have to recreate it. If your URLs are just based on the entry ID, then it's not hard. However, look at our URLs — they're a conglomoration of the date and the entry title. We'd have to create a PHP function to recreate this scheme — and if we ever changed the URL structure from within MT, we'd have to change the PHP function separately.

(2) Text filters. If you're just converting line breaks, the text filter is not so hard to re-produce. However, if you're using Textile or some other plug-in to filter your text, you're going to have to reproduce that in PHP as well so the previews render correctly.

You can avoid all this, however, by simply using PHP includes and an extra Individual Entry Archive. The result is an elegant solution that blends PHP and MT to eliminate the tedium of recreating MT functionality in PHP.

First, create a folder in your site called "search_fragments."

Next, create a new Individual Entry Archive in MT called "search_fragment." This template should contain the just HTML to create a single search listing. Like this:


<tr class="title">
  <td class="title">
    <a href="<MTEntryPermalink>"><MTEntryTitle></a>
  </td>
  <td class="date">
    <MTEntryDate format="%m/%d/%Y">
  </td>
</tr>
<tr class="excerpt">
  <td colspan="2">
    <MTEntryExcerpt>
  </td>
</td>

Configure this template to generate a file in the "search_fragments" directory named for the entry ID only. You don't even have add an extention, though you can if you like (if so, you'll need the change the PHP code listed below). So the entry in the archiving configuration would be something like:

search_fragments/<MTEntryID>

Now when an entry rebuilds, it will create two files: (1) its normal archive file, and (2) a search result fragment file called "1", "2", "348", etc. Notice that since we're using standard MT templates to create the fragment, the permalink will be created by MT, and the exceprt text will be formatted according to the text filter the entry is using.

Now, when you use your SQL to get your search results, just SELECT the entry ID, then spin through those and use PHP to include the matching search fragment file. Like this:


<table>
  <?php
    while ($r = mysql_fetch_assoc($keywordResults)) {
      @include "search_fragments/" . $r['entry_id'];
    }
  ?>
</table>

This will dump the contents of each search fragment file in the table. Since each file contained two rows, the resulting table will be valid HTML. Notice we're surpressing any errors on the inclusion line just in case a file is missing for some reason.

We've be using this system here for months, and it works great.

Click here to comment on this entry


Grok Description matches for Cruft-free URLs in Movable Type
GrokA matches for Cruft-free URLs in Movable Type

Cruft-free URLs in Movable Type

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

4.5 years ago: what
is a liberal?

google does whois
HP to sell branded
iPods

gawker shocker!
a first peek at
basecamp

ten tips for killer
web services

A long-living family
archive website

Speech tomorrow at
Rakuten

Mars rover
animations

Smiling makes you
happy

Mailblocks.com is
hosed

You remind me of
those people who
said they'd never
get cell phones

Barlow steps out of
the echo chamber

Are blogs just?
What can we do to
help blogs promote
justice?

It's like Microsoft
Office... except
it's not...

Google whois
quicklink

JeannieAndJibot
session at ETech

A message to the
left-wing freak show
from the Club for
Growth

What's wrong with
binary logic?

Traffic, obsession
and happiness

The cultural context
of money in Japan

Update: Microsoft,
BEA, Tibco tout Web
services events spec
- Infoworld Staff

CES: Digital imaging
market set to
explode, panel says

IBM, SuSE team up on
point-of-sale server
- Infoworld Staff

U.S. lifts bidding
restriction on MCI

Toshiba unveils sub
1-inch hard disk
drive

English version of
China's Red Flag
Linux delayed

TSMC's 2003 sales
hit record high

IBM offers sneak
peek at J2EE 1.4 -
Infoworld Staff

Office 2004 and
Virtual PC for Mac
released

4th Annual
Procurement Forum

Building Customer
Satisfaction and
Employee
Satisfaction
Strategies

Working Capital
Management

Wireless M2M
Communications Forum

High Throughput
Screening for Drug
Discovery

MALCOLM
GLADWELL ON SUV'S
AND THE DANGER OF
LEARNED
HELPLESSNESS

Photoshop rips heavy
cultural symbols out
of artists'
phrasebook

Sterling: "I'll
believe in settling
Mars when I see
people settling the
Gobi Desert"

Edinburgh pubs serve
short measures of
whisky

Security at on-alert
airports can take 5
hours to clear

Blogs Coming of Age
in Spain

One-shot, six-week
herion-withdrawal
drug trialled

Livejournallers save
Austin mural

SRL show in Vegas in
February!

more EVDO: Verizon
building big, fast,
unwired data network

Foldable 35mm
cameras

Tolkien Barbie and
Ken

Linksys's new WiFi
convergence
box-thingy

Entire-roll-of-film-
long panoramae of
trains in motion

what is grok?