questions about newsbox plugin

Creating and modifying plugins.
Post Reply
tk
Regular
Posts: 7
Joined: Mon Feb 27, 2006 11:52 pm

questions about newsbox plugin

Post by tk »

I've got some questions about the newsbox plugin (in other words, Hi Judebert :wink: )

I've been trying to edit the appearance of newsboxes for a while. Here are what I'd like to achieve:


* Inside newsbox: just titles
I'm trying to have only the titles (not the other attributes of an entry) listed in a newsbox category. Though I played around a lot with newsbox.tpl I neither could change the look and feel, nor the data displayed in the newsbox(es).

* Preventing newsbox substracting content from the frontpage entry list
Newsbox automatically substracts the entries it displays from the ones in the front page. I'd like both to keep the entry list and have them fetched in the newsbox at the same time.

Is there a way to do those?

By the way, I'm using Serendipity 1.0-beta1 and Newsbox v. 0.3
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Sorry! I've been really busy. I'm still really busy, but I'll help out where I can.

Unfortunately, the newsboxes are not very well-tested. And the templating was my first attempt at Smarty.

The templates only work for newsboxes containing articles. I changed the <div> to a <fieldset> for one version, which worked pretty well for me. The format is the same as the normal entries array; to get just titles and links, use the {$entry.title} and {$entry.link}, but leave out {$entry.body}.

As for not removing them from the front page: Wow. I never even considered anything like that. It sounds like you'd be more interested in a "latest entries" plugin that works on the front page instead of the sidebar. If you remove the "frontend_fetchentries" hook (or just return true right at the beginning), your entries should reappear in the front page listing.

Good luck! Let me know if you need anything else!
Judebert
---
Website | Wishlist | PayPal
tk
Regular
Posts: 7
Joined: Mon Feb 27, 2006 11:52 pm

Thanks!

Post by tk »

Thanks Judebert.

I'll give it a try and let you know what happened (hope soon; I am kind of busy nowadays too) :)
tk
Regular
Posts: 7
Joined: Mon Feb 27, 2006 11:52 pm

no result with newsbox.tpl

Post by tk »

Hi Judebert,

I guess I managed to do the "not removing entries" part.

But in spite of whatever change I made in newsbox.tpl file, it seems I can't manage to change either the format or the data in the newsbox.

Any ideas?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Which version of the plugin and Serendipity are you using? I'll set something up on my website and see if I can duplicate your error.
Judebert
---
Website | Wishlist | PayPal
Post Reply