Quote from: markh at Jun 06, 2015, 11:43 PM
Thank you very much Mark. I almost got what I what. Just a little problem here.
I am using this snippet -
$content = $modx->resource->content;
$img = substr($matches,1,strlen($matches));
$img = "assets/images/defaultImage.png";
When I use it for a document, its working but this call
generating url ttp://imagepath/image.jpg
instead of http
. I have to put h before snippet call to make it working. so its like
The main problem facing -
When I use this
in my Article extra's container, it only generates default image. I want it to generate image from the article to make it featured image.
I hope you understand what I want to say.
Aslo tell me how can I use this to crop image with phpthumbof?