List Info

Thread: Story count for each keyword




Story count for each keyword
user name
2006-10-31 17:55:42
> Something like this:
> 
>    for my $kw (Bric::Biz::Keyword->list) {
>        my $count =
(Bric::Biz::Asset::Business::Story->list_ids({
>            keyword_id => $kw->get_id
>        }));
>        print $kw->name, ": $countn";
>    }

Thanks David!

I actually don't need to create a Bricolage template to do
this as it
will be a one-time thing (or at least used only
occasionally). Is it
possible to invoke Bric::Biz::Keyword->list et al outside
of Bricolage
-- say in a CGI script?

Chris

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )