Displaying Media Fields in Layouts

Article View

Following are suggestions for displaying data in the Article View.  To create a layout override for this view, copy files to the layout override directory in the default template.  For example, to override the default layout, copy:

/components/com_zine/views/article/tmpl/default.php

to:

/templates/your_template/html/com_zine/article/default.php

then make customizations as required.  For more information about layout overrides, please refer to the Understanding Output Overrides in Joomla! 1.5 tutorial on the Joomla! Developer Site.

Displaying the Images (thumb through to fullsize).

<?php if ($src = $this->media->get( 'thumb' )) : ?>
  <img src="/<?php echo $this->baseurl.'/'.trim( $src, '/' );?>" align="left"
	alt="<?php $this->media->get( 'caption' );?>" style="margin: 0 5px 3px 0" />
<?php endif; ?>

You may replace thumb with small, medium, large or fullsize as appropriate.  You may also alter the other attributes of the IMG tag as you deem appropriate for your site.