Re: How Do I Display The Latest News...
"Diamonddogs" <webmaster-HoJ0R/[email protected]> Thu, 24 Jul 2003 08:44:55 +0200
| Newsgroups | gmane.comp.cms.xaraya.knowledge-base |
|---|---|
| Organization | Xaraya News Server |
| Message-ID | <[email protected]> |
"Jonn Beames" <jbeames-tp0iMJ/[email protected]> a écrit dans le message news: [email protected] > J. Cox wrote: > > > However, I see that I am just going to have to break down and write a > > block;) Is it that we want to pull from any pub type, by category, or is > > there something I am missing? > > If it is that we want to display the top (by date, rating, or hitcount) > items in a category of a particular pub type or the default pub type or > the current pub type, then we don't need a whole new block. We just need > to add a few lines of code to the topitems block so that the site admin > can select the category. Then we pass the cid along in the articles > userapi getall when we retrieve the items to be displayed in the block. > > However, if what we is to display the top items of a category and we want > it to pull items from all pub types, then it gets a little more > complicated. the topitems block is currently set up to pay attention to > the current pubtype and change the content of the block accordingly if > there is no pub type value set. This is a pretty nice feature I wouldn't > want to upset, so an override flag might be necessary to tell it not to > pass any pubtype in the articles userapi getall. > > Just thoughts... hope it's not more noise, > Jonn > > Yes it would be nice. If you don't select category, the block will select top from all cat. For my part i need to display only the 3-4 last news from a specific category... Thanx Chris