// image field: rendered w. max-width/height of 1000px.
$entry = $this->contentEntry()->getEntry();
$decorators = $entry->getContentType()->getDisplayDecorators('file');
foreach ($decorators as $decorator) {
if ($decorator instanceof Content_Form_Decorator_DisplayImage) {
$decorator->setOption('maxWidth', 1000)
->setOption('maxHeight', 1000);
}
}
print $this->contentEntry()->element('file', array('display' => array('decorators' => $decorators)));
?>
// view/download links (if not adding)
if ($this->entry->getId() && $this->entry->getFieldMetadata('file')) :
$metadata = $this->entry->getFieldMetadata('file');
?>
endif; ?>
= $this->contentEntry()->element('title') ?>