I've used the get_container() method in the past, but can't get the
get_containers() method working. I have a story type with several
'fp_sidebar_box' container elements in it. I can fetch and output
these with 'my @fp_sidebar_box1 = $element-
>get_container('fp_sidebar_box',1); ', replacing 1 with 2, 3, etc. as
necessary. But reading the documentation it looked like I should be
able to do ' my @fp_sidebar_boxes = $element-
>get_containers(qw('fp_sidebar_box'));' and then loop through that
array to get each element. However, that doesn't seem to return
anything. What am I doing wrong?
Thanks,
Tom
PS: I initially tried using $story->get_containers() but that gave the
error 'Can't locate object method "get_containers" via package
"Bric::Biz::Asset::Business::Story"'. So I used $element instead as I
say it was at http://www.bricolagecms.org/docs/2.0/api/Bric/Biz/Element/Container.html
in the API.
get_containers() method working. I have a story type with several
'fp_sidebar_box' container elements in it. I can fetch and output
these with 'my @fp_sidebar_box1 = $element-
>get_container('fp_sidebar_box',1); ', replacing 1 with 2, 3, etc. as
necessary. But reading the documentation it looked like I should be
able to do ' my @fp_sidebar_boxes = $element-
>get_containers(qw('fp_sidebar_box'));' and then loop through that
array to get each element. However, that doesn't seem to return
anything. What am I doing wrong?
Thanks,
Tom
PS: I initially tried using $story->get_containers() but that gave the
error 'Can't locate object method "get_containers" via package
"Bric::Biz::Asset::Business::Story"'. So I used $element instead as I
say it was at http://www.bricolagecms.org/docs/2.0/api/Bric/Biz/Element/Container.html
in the API.