Hello,
I am trying to make our /story.mc template create and publish a separate new story in certain cases. To do this I've tried including the following code:
my $new_bio_story = Bric::Biz::Asset::Business::Story->new({
element_type => 'global_contributor', # This is the name of one of our story types
source__id => $story->get_source__id,
site_id => $story->get_site_id,
user__id => Bric::App::Session::get_user_id(),
title => $contrib_name,
});
However I get the following error:
Can't locate object method "get_id" via package "global_contributor" (perhaps you forgot to load "global_contributor"?) at /home/newint/bricolage2/lib/Bric/Biz/Asset/Business.pm line 2449, <GEN491> line 619.
Any help much appreciated,
Tom
(Relative Bricolage newbie)
I am trying to make our /story.mc template create and publish a separate new story in certain cases. To do this I've tried including the following code:
my $new_bio_story = Bric::Biz::Asset::Business::Story->new({
element_type => 'global_contributor', # This is the name of one of our story types
source__id => $story->get_source__id,
site_id => $story->get_site_id,
user__id => Bric::App::Session::get_user_id(),
title => $contrib_name,
});
However I get the following error:
Can't locate object method "get_id" via package "global_contributor" (perhaps you forgot to load "global_contributor"?) at /home/newint/bricolage2/lib/Bric/Biz/Asset/Business.pm line 2449, <GEN491> line 619.
Any help much appreciated,
Tom
(Relative Bricolage newbie)