Fork me on GitHub

Thursday, December 24, 2009

Merry Xmas

…and a Happy New Year :)

Monday, November 30, 2009

FrontPage plugin


Before we start, a small warning: main SVN repository has changed to

http://flatpress.svn.sourceforge.net/svnroot/flatpress/trunk/flatpress/

Now back to the article :)

Sometimes people ask if FlatPress supports multi-language blogs, and the answer is no, not really.

What I usually suggest to do is creating several “special” categories (which are in fact just categories) for the main language, and make FP display only that category as a default. There is a very simple plugin for that (CategorySelector).

E.g.:

English :10
--General :101
--News :102
----Announcements :103
----Events :104
------Misc :105
--Technology :106
Italiano :20
--Generale :201
--Notizie :202
----Annunci:203
----Eventi :204
------Varie :205
--Tecnologia :206

The idea is nice since its scope is not limited to language selection, but it can be built upon further.

If you want to address your blog to a vast audience, you might want to prevent some content to show up in the very first page people would see if they stumbled upon your site.

I, for one, on my personal blog I don’t like my occasional tech rants to appear together with the more general content.

Meet the FrontPage plugin

frontpage-1.png

Meet the FrontPage plugin. Think of it as a CategorySelector on steroids (which in fact is). The simple plugin on the forums now has a nice graphic config panel.

But FrontPage gives you even more. If you happen to be running the SVN version of FlatPress you’ll be able not only to show a single category, but even to hide a category, regardless its position in the category tree.

Suppose we have this category tree

General :101
News :102
--Announcements :103
--Events :104
----Misc :105
Technology :106
--Rants :107

And we wanted Technology not to show up in the main flow. Here is how we could re-factor:

Frontpage :10
--General :101
--News :102
----Announcements :103
----Events :104
------Misc :105
Page Two :20
--Technology :106
----Rants :106

We would now choose the Frontpage category to show.

Now suppose we want Announcements to never be listed, unless explicitly chosen.

frontpage-2.png

The Hide options comes in handy in this case.

Secondary “root” categories such as Page Two can be tweaked for more: you might create a Static Page category in which filing fake static pages on which people would be able to comment! Those pages would of course lack the “naming” facility of real static pages: a plugin could easily fill the gap.

Notes and Caveats

  • It is worth noticing you don’t have constraints on the ID numbering of a category — i.e. numbers don’t have to be consecutive –, given that you choose a unique ID for each category
  • You’ll notice that I have replicated the tree twice in the Language example: the reason is FlatPress does not allow to select more than one category at once, so you can’t select both the Italian language and the General category to show only those posts which are general
  • Refactoring the category tree as shown in the current stable versions of FlatPress can be done only a priori: this means that changes to the category trees won’t change the listing of posts which has been already published (unless you re-publish each one by hand).

    This has been fixed in the SVN version of FlatPress: when you have redesigned your category tree, you’ll have to rebuild the indices from the Maintenance panel.

Getting the plugin

You can get it now from the SVN SourceForge repository (click the download GNU tarball link).

Saturday, October 10, 2009

FlatPress 0.909 Arioso

With no further ado, FlatPress 0.909 is out with all of the improvements I had already listed in the last months.

2556176764_12059f5465.jpg

  • More reliable storage with drafts and entry saving (for your paranoid pleasure)
  • More configurable plugins (for your customizating obsession)
  • Full PHP5.3 compatibility (for your bleeding-edge joy) and still PHP4 (for your hosting suckyness)
  • Plus, comment editing (for your spam hate)
  • More awesomeness (for your need for awesomeness)

Upgrading advice is always the same.

Get it at the usual place

Have fun!

[image: freedom by guile]

Saturday, September 26, 2009

Bug fix release (nasty local file inclusion!)

Giuseppe Fuggiano found a really bad local file inclusion bug, so I’m really asking you to either update to the last file release on SourceForge (0.812.2), or get the SVN package

thank you, Giuseppe!

Monday, September 21, 2009

I’m back

Just to let you know, it’s a month I’ve been home now; well, I still hadn’t the time for a full blown release, I’m very busy at the moment, trying to deal with day-life :)

Nothing bad, of course. Just be patient, or either grab the source from SVN: report any bug on the forums, so that when I will release I won’t be drowned with your reports! :p