You are here: Gregarius - Devlog » 2005 » 05 » 05

Archive for May 5th, 2005

Private, Sticky Items

Item flags: unread, sticky, private

These days I’ve been pretty busy working on advanced items states, but let me explain.

Until now, an item from an RSS feed had a simple binary state: it was either read or unread. I just extended this to support two additional states, namely:

  • Sticky: an item with the Sticky flag set will never be deleted when you prune items, unless you explicitly specify it. This is useful when you want to clean your database but would like to keep a set of items that specifically interest you, say.

  • Private: a private item will simply be invisible to the visitors of your Gregarius installation: basically only you get to see private items!

    In fact you probably won’t set the private flag on individual news items, but rather on a whole RSS feed (which is done in the feed management section of your Gregarius’ administration area.) Setting the private flag on a feed will set this flag on all past, present and future items of that feed; removing the private flag from a feed will set all the items of that feed to be public again.

How are these flags set on items you ask? Well, its rather trivial:

  1. When you log into the administration area of your Gregarius installation you are given a cookie, which will identify you as an administrator (and will grant you the right to see private items!)

  2. When you come back to the content sections of your Gregarius installation you will notice a new edit icon (the edit icon) next to you items’ permalink icons.

  3. Clicking that very icon will expand a tiny inline dialog, where you can toggle the item flags.

  4. When you are done setting flags clicking ‘OK’ will post you edits back to the server via AJAX and collapse the dialog.

Update from CVS to give it a try, or wait for Gregarius 0.4.2, which I was hoping to release this weekend.

Posted by Marco at May 5th 2005, 1:49 pm | Filed under: features, gregarius | 2 Comments
Sponsored links

Ringtone | Secured Loans | Repair Bad Credit | Car Loan | Hosting