Re: How Do I Display The Latest News...

[email protected] (mikespub) Fri, 25 Jul 2003 07:07:58 GMT
Newsgroups gmane.comp.cms.xaraya.knowledge-base
Organization Not much, really...
Message-ID <[email protected]>
In article <bfpvrp$8il$1-111RdWWlOxkOkXtL6OYfHgC/[email protected]>, [email protected] wrote:
>
>On 24-Jul-2003, [email protected] (mikespub) wrote:
>
>> 4) use the articles_user_view GUI call to retrieve and display the
>> articles
>>    you want. You can even use this directly in your template if you want :
>>
>>    #xarModFunc('articles', 'user', 'view', array('ptid' => 1, 'catid' =>
>>    2))#
>
>Mike,
>
>This looks promising! :-)
>
>Now...is there a way to get the latest 3 headlines to display? Would I use a
>loop of some sort to pull a certain number of headlines out?
>
>Thanks!
>
>MJT

Nope, that will give you the same HTML output as if you would go to
index.php?module=articles&func=view&ptid=1&catid=2 - except that
you will only get the module output here, and not the rest of the page.

I'm not sure if you can specify the number of items in this way, but
that shouldn't be too hard to add if necessary. Let me know...

Mike.