The Serendipity Handbook

You can now read the (german) handbook here: PDF - https://github.com/s9y/Book (LaTeX source).

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index General discussions Sticky posts

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
joho
Regular
 
Posts: 54
Joined: Mon Oct 25, 2004 10:25 am
Location: Stockholm, Sweden

Postby joho » Mon Oct 25, 2004 10:28 am

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?
At the end of a smile, there is a laugh and a 1/2 [DAD]

User avatar
garvinhicking
Core Developer
 
Posts: 28953
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Mon Oct 25, 2004 12:52 pm

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

joho
Regular
 
Posts: 54
Joined: Mon Oct 25, 2004 10:25 am
Location: Stockholm, Sweden

Postby joho » Mon Oct 25, 2004 3:16 pm

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?
At the end of a smile, there is a laugh and a 1/2 [DAD]

Little Hamster
Regular
 
Posts: 62
Joined: Thu Oct 07, 2004 3:16 pm

Postby Little Hamster » Tue Oct 26, 2004 10:36 am

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.

User avatar
tadpole
Regular
 
Posts: 88
Joined: Fri Oct 08, 2004 6:20 am
Location: 33°6'4.079" North, 117°3'6.563" West

Postby tadpole » Tue Oct 26, 2004 1:14 pm

Even easier to use serendipity_fetchEntries(). :)

Little Hamster
Regular
 
Posts: 62
Joined: Thu Oct 07, 2004 3:16 pm

Postby Little Hamster » Wed Oct 27, 2004 10:49 am

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



Return to General discussions

Who is online

Users browsing this forum: No registered users and 1 guest