21489 Posts in 5783 Topics by 2622 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 449 Views |
-
CTF and backlink tracking

17 December 2010 at 8:30am
Hello everyone,
I have a class like this:
class Imageattachment extends DataObject{
static $db = array(
'Title' => 'Varchar(100)'
);
static $has_one = array(
'Image' => 'Image',
'Whatever' => 'Class'
);
function getCMSFields_forPopup(){
$fields = new FieldSet();
$image = new ImageField('Image', 'Image you want to add');$fields->push($image);
return $fields;
}
}
This works perfectly on any Page I build, except one thing. How do I setup backling tracking for Images?I noticed that Backlinks only work, when an image is used directly inside a WYSIWYG but not on DataObjects or Pages. I've looked in the Docs and in the source of wysiwygsh classes, but didn't find anything. Any suggestions?
| 449 Views | ||
|
Page:
1
|
Go to Top |

