Newsbox plugin
Posted: Tue Dec 06, 2005 5:24 am
I am pleased to announce the first, very rough, release of my Newsbox plugin.
This plugin will allow you to remove all entries belonging to selected categories from the Serendipity frontpage. A configurable number of entries from those categories will then be displayed in a box with a configurable title on the frontpage. The box will be placed according to your selection: above the header, below the footer, above the entries, below the entries, or hidden altogether (thus removing entries of those categories from your frontpage without displaying them elsewhere).
Additionally, Newsboxes may be placed into other Newsboxes. The containing Newsbox must be configured to contain Newsboxes; it will ignore any category selections. You can even configure your Newsboxes to contain each other circularly, in which case nothing will be displayed.
Newsbox entry appearance can be handled in the newsbox.tpl template. If no such template exists, they'll be formatted just like entries. The appearance of the actual box can be handled with the newsbox, newsbox_container, and newsbox_title CSS classes.
The plugin does come with some CSS, which sucks: standalone Newsboxes are 100% wide, with a black 1-px border, and default left-justified <H3> titles. Contained Newsboxes are 48% wide, with no border and some padding, floated left (an attempt to produce a 2-column centered row). For best results, you are advised to add CSS styles for the newsboxes to your template. If someone wants to submit better CSS for the Newsboxes, I'd be happy to include it in an upgrade.
This plugin has been tested on a non-live site. It is released under the GPL, which includes NO WARRANTY. Please test and critique it.
You can download it from http://judebert.com/wasted_youth/plugin ... ewsbox.tgz. A lame example is on the currently-non-live site http://judebert.com/wasted_youth/index.php.
Good things happen when you're blogging with Serendipity.
This plugin will allow you to remove all entries belonging to selected categories from the Serendipity frontpage. A configurable number of entries from those categories will then be displayed in a box with a configurable title on the frontpage. The box will be placed according to your selection: above the header, below the footer, above the entries, below the entries, or hidden altogether (thus removing entries of those categories from your frontpage without displaying them elsewhere).
Additionally, Newsboxes may be placed into other Newsboxes. The containing Newsbox must be configured to contain Newsboxes; it will ignore any category selections. You can even configure your Newsboxes to contain each other circularly, in which case nothing will be displayed.
Newsbox entry appearance can be handled in the newsbox.tpl template. If no such template exists, they'll be formatted just like entries. The appearance of the actual box can be handled with the newsbox, newsbox_container, and newsbox_title CSS classes.
The plugin does come with some CSS, which sucks: standalone Newsboxes are 100% wide, with a black 1-px border, and default left-justified <H3> titles. Contained Newsboxes are 48% wide, with no border and some padding, floated left (an attempt to produce a 2-column centered row). For best results, you are advised to add CSS styles for the newsboxes to your template. If someone wants to submit better CSS for the Newsboxes, I'd be happy to include it in an upgrade.
This plugin has been tested on a non-live site. It is released under the GPL, which includes NO WARRANTY. Please test and critique it.
You can download it from http://judebert.com/wasted_youth/plugin ... ewsbox.tgz. A lame example is on the currently-non-live site http://judebert.com/wasted_youth/index.php.
Good things happen when you're blogging with Serendipity.