Hello. I try to create a type TV (input), which loads the image. The problem is that in the derivation of TV output is only a relative path.
Displayed: imagename.jpg
Should so: /assets/images/imagename.jpg
MediaSource displayed only type of image and file, it is necessary somehow to add my type myTypeImage. Specify it /core/model/modx/modtemplatevar.class.php, line 291
public function prepareOutput($value, $resourceId= 0) {
/* Allow custom source types to manipulate the output URL for image/file tvs */
$mTypes = $this->xpdo->getOption('manipulatable_url_tv_output_types',null,'image,file');
...
}
I am trying to do so, but it did not work
$this->xpdo->setOption('manipulatable_url_tv_output_types','image,file,myTypeImage');
P.S. Sorry for my English