17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 806 Views |
-
Images

6 July 2008 at 12:16am Last edited: 6 July 2008 12:25am
Hi
At the moment I am adding images like this:
static $has_one = array(
'Image' => 'Image',
'ImageThumb' => 'Image'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new ImageField('Image'), 'Content');
$fields->addFieldToTab('Root.Content.Main', new ImageField('ImageThumb'), 'Content');
return $fields;
}
}which is the way described in the tutorial: extending a basic site,
but i don't want the cms to make the image code (<img src="test.gif" alt="" />)i only want to see the link when i call for it (test.gif)
| 806 Views | ||
|
Page:
1
|
Go to Top |


