Hey All,
I have a template for a chart, which is essentially an image with a bunch of
other formatting (caption fields, name, footnotes, etc). Now, the chart
image itself is related media, which width and height fields. From within
the chart template, I'd like to be able to access the width of the related
media, but can't seem to get it to work.
Reading the bric documentation, I'd assume it'd go something like this:
(inside the chart template)
my $width = $element->get_related_media->get_data('width');
but that doesn't work. Any help would be greatly appreciated.
Thanks!
Philip
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net
_______________________________________________
Bricolage-General mailing list
Bricolage-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-general
I have a template for a chart, which is essentially an image with a bunch of
other formatting (caption fields, name, footnotes, etc). Now, the chart
image itself is related media, which width and height fields. From within
the chart template, I'd like to be able to access the width of the related
media, but can't seem to get it to work.
Reading the bric documentation, I'd assume it'd go something like this:
(inside the chart template)
my $width = $element->get_related_media->get_data('width');
but that doesn't work. Any help would be greatly appreciated.
Thanks!
Philip
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net
_______________________________________________
Bricolage-General mailing list
Bricolage-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-general