I cannot get phpthumbof to work in a chunk. I think it may have to do with the path to the image? It works fine in a template, but not in chunks. For example:
Template (works):
<img src="[[*ItemImage:phpthumbof=`wl=400&hp=400&zc=1`]]" alt="[[pagetitle]]" />
(TV returns the full URL: ’
http://dev.example.com/images/folder/example.jpg’)
Chunk (called by a snippet; does not work):
<img src="[[+tv.ItemImage:phpthumbof=`w=215&h=215&zc=1`]]" alt="[[+pagetitle]]" />
(TV returns relative URL only: ’folder/example.jpg’)
...My hypothesis is that the TV is returning a filename only, not a full path to the file itself, causing phpthumbof to fail. If this is the case, how would I change this? I would be very grateful for any thoughts or advice. Thanks in advance.
MODX Revolution 2.1.2-pl (traditional)
OS: linux
PHP Version 5.2.17
Apache/2.2.19 (Unix)