Matt Gemmell

TOLL is available now!

An action-thriller novel — book 2 in the KESTREL series.

★★★★★ — Amazon

Thistle development

development 1 min read

The first day of Thistle development went well. I started from scratch with a new 
copy of <a href="">PHPosxom</a>, and went from there.
I made several changes, mostly architectural. Here are the new options to set:
  • $story_extension - choose the file-extension for your entries' files.
  • $ignore_folders - specify a list of top-level folders to ignore when looking for entries (and to exclude from the category-list). The data, modules and types folders (see below) are always ignored. Folders with these names below the top level will be treated as normal.
  • $auto_line_break - choose whether or not to automatically convert line-breaks in entries into <br /> tags;
  • $date_format - choose how you want dates to be formatted (using standard formatting strings)
  • $time_format - choose how you want times to be formatted (as above)
  • $include_filename_in_urls - whether or not to include the blog's filename (usually index.php) in URLs.
  • $data_folder - choose a folder for metadata, etags and authors files. Better than putting them loose at the top level.
  • $types_folder - as above, but for "types" (my name for "flavors"). Types no longer require a "_type" or "_flav" suffix.
  • $modules_folder - as above, but for modules. Any .php files in this folder will be automatically loaded as modules. Loading of modules can be disabled globally, or individual modules can be disabled by adding an underscore (_) to the beginning of their filename.
  • $default_type - specify the default type to use.
  • $archive_type - specify the type to use for archives.

And a few underlying changes:
  • Changed flav to type - I don't like the sound of "flavors", so the flav parameter has been changed to type.
  • Archive type gets full post-data - the archive type now receives full post-data, so you can show post-titles on your archive page, for example.
  • search filter - added a search filter, to do searching. You can pass a search parameter in an URL, with a string as its value, and the resulting page will show all matching posts (matches in titles and/or content), with the search-terms highlighted. This works in conjunction with any other filters (date, category, author). This feature is still experimental (particularly the highlighting code).

More later!


<span class="footnote">Footnote: Feature-requests are always welcome, via the comments system.</span>