Go to content Go to sidebar

Migrating to TextPattern: Adding a Default Section

Out of the box, the TextPattern clean-url section handling isn't quite what I want. Radio's categories are structured like miniature weblogs. But Textpattern sections are interwined together. Viewed through my Radio experience, the problem seems to be that there is no default section that includes all articles.

The first step is easy. If you don't mind index.php appearing in the middle of an url, then any article can be referenced by: base-url/index.php/article-id. I prefer to avoid that by creating a duplicate of index.php named archive. After the .htaccess file is modified to force handling of the new file as a php application, then any article can be referenced by: base-url/archive/article-id.

The next step is to modify any TextPattern generated url's to be section aware. In a real section, the default url should be generated. And in the default section, the new universal url should be generated. We'll cover this in the next installment.

Part 2: Default Section Permalinks