Re: How Do I Display The Latest News...
jbeames-tp0iMJ/[email protected] (Jonn Beames) Thu, 24 Jul 2003 05:45:46 +0000 (UTC)
| Newsgroups | gmane.comp.cms.xaraya.knowledge-base |
|---|---|
| Organization | not organized |
| Message-ID | <[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