Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

LIMIT

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


zdravko.balorda at siix

Nov 19, 2009, 11:09 PM

Post #1 of 2 (452 views)
Permalink
LIMIT

Hi,
I am asking for a clue here, where to hack in a LIMIT 10,
to get last 10 stories from Story::list() function.

Regards, Zdravko


bret at pectopah

Nov 19, 2009, 11:17 PM

Post #2 of 2 (405 views)
Permalink
Re: LIMIT [In reply to]

Hi Zdravko,

Just pass it as one of the parameters on the list():

my @stories = Bric::Biz::Asset::Business:Story->list({
category_uri => '/awesome/',
Limit => 10,
});


Hope this helps,

Bret



On Fri, 2009-11-20 at 08:09 +0100, Zdravko Balorda wrote:
> Hi,
> I am asking for a clue here, where to hack in a LIMIT 10,
> to get last 10 stories from Story::list() function.
>
> Regards, Zdravko
>
>


--
Bret Dawson
Producer
Pectopah Productions Inc.
(416) 895-7635
bret [at] pectopah
www.pectopah.com

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.