List Info

Thread: how to get a category object using the category uri




how to get a category object using the category uri
user name
2006-10-27 16:16:58
On Oct 26, 2006, at 22:41, Dawn Buie wrote:

> I have tried:
>
>   my $category = Bric::Biz::Category->lookup({ uri
=> '/News/' });
>
> I get the error:
>
>    Too many Bric::Biz::Category objects found.

Try:

   my $category = Bric::Biz::Category->lookup({
       uri     => '/News/',
       site_id => $story->get_site_id,
   });

Best,

David


[1]

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