Matt Gemmell

My new book CHANGER is out now!

An action-adventure novel — book 1 in the KESTREL series.

★★★★★ — Amazon

More Thistle work

Development 1 min read

Yes, yet more progress!
A few new tweakable options:
  • $cat_name_file - The name of an optional file in each directory which contains a display-name for that category.
     
  • $cat_info_file - Similarly to $cat_name_file, but containing a description of the category.
     
  • $show_cat_name - Whether to show the display-name for a category instead of just the path. Applies to posts themselves, the Calendar, the Category List, and pages with a category filter applied.
     
  • $show_cat_info - Whether to show the description of a category. Applies to pages with a category filter applied.
     
 



As a consequence of the above changes, we now have two new functions which are available for use in types, modules, and so on:
  • catDisplayName() - Takes a category (path) and returns the appropriate display name, assuming that a corresponding category name file exists and that $show_cat_name is enabled. Otherwise returns the category path.
     
  • catDisplayInfo() - Takes a category (path) and returns the appropriate display info, assuming that a corresponding category info file exists and that $show_cat_info is enabled. Otherwise returns an empty string.
     
 



I'll be setting up a live demo of Thistle on this site soon, which will evolve as development continues, 
and I'm thinking of posting the current code a few times a week (depending on development progress), so 
you can try it out (or make use of the code for something) without having to wait for a release.



Stay tuned.