Page 1 of 1
Sticky posts
Posted: Mon Oct 25, 2004 10:28 am
by joho
First off, thanks for some really nice software. It took all of 25 seconds to configure I think, and it did the job on the first run, very nice indeed!
Quick question.. how would I go about creating a sticky post, e.g. an announcement-type post? Or for that matter, maybe a category that would get special treatment?
Re: Sticky posts
Posted: Mon Oct 25, 2004 12:52 pm
by garvinhicking
Sticky Posts are currently only supported in our 0.8 snapshot branch, which is under development.
You can however work around that by editing the 'layout.php' file of your template directory (templates/default/layout.php, or another direcotry) by hand and inserting stuff there.
But you could also, of course, add its own category and let users select this. Or you can create a sidebar HTML nugget, which is maybe better layout-wise...
Regards,
Garvin
Posted: Mon Oct 25, 2004 3:16 pm
by joho
OK.
Speaking of nuggets.. is it possible to "include" the contents of an item (such as the "announcement" I want to make sticky), and just one item, in a nugget?
I guess if I want to make a "block" with a given category in it, I'd RSS feed from myself, or?
Come to think of it.. I guess RSS-feeding from myself and setting number of items to 1 would give me the last "headline" from that category?
Posted: Tue Oct 26, 2004 10:36 am
by Little Hamster
Speaking of nuggets.. is it possible to "include" the contents of an item (such as the "announcement" I want to make sticky), and just one item, in a nugget?
I'd suggest try writing a plugin for that. It's really easy even if you don't know PHP and SQL. (As long as you can program). It's very simple to fetch an entry via a SQL command and then display it using PHP.
Posted: Tue Oct 26, 2004 1:14 pm
by tadpole
Even easier to use serendipity_fetchEntries(). :)
Posted: Wed Oct 27, 2004 10:49 am
by Little Hamster
Even easier to use serendipity_fetchEntries().
Didn't even know that exists! Doesn't that confirm you don't need to really know the s9y code base to write plugins :p