[[phpthumbof?input=`[[++tv_thumb_basepath]][[+tv.thumb]]`&`w=125&h=130&bg=FFFFFF`]]
This question has been answered by legues. See the first response.
I have a setup with a second context that has one resource and acts as sort of the landing page where I have two similar home pages
while this works for the most part, I've been struggling to get the phpthumb working. I've looked through this thread
https://forums.modx.com/thread/?thread=39183&page=7
and applied the info there, but was not able to get it running without issues (some images were fixed, but not all)
I've updated to pThumb and it did not resolve the issue, so I started digging deeper and found that the input to the snippet was already missing the media folder location.
Once I've figured that out, I've found a way to hack my way around it by adding a custom setting tv_thumb_basepath that is only set in the second context
and then I use this chunk as my tpl
[[phpthumbof?input=`[[++tv_thumb_basepath]][[+tv.thumb]]`&`w=125&h=130&bg=FFFFFF`]]
is there another way to get around this?
Hope this helps someone who's coming up against the same issue
Ahh... and put the snippet uncached!!![[!phpthumbof? &input=`[[++tv_thumb_basepath]][[+tv.thumb]]`&`w=125&h=130&bg=FFFFFF`]]
You forgot & before input.Ahh... and put the snippet uncached!!!
[[!phpthumbof? &input=`[[++tv_thumb_basepath]][[+tv.thumb]]`&`w=125&h=130&bg=FFFFFF`]]
Quote from: legues at Dec 03, 2015, 07:45 AM
You forgot & before input.Ahh... and put the snippet uncached!!!
[[!phpthumbof? &input=`[[++tv_thumb_basepath]][[+tv.thumb]]`&`w=125&h=130&bg=FFFFFF`]]
Why should the snippet be uncached? I think caching is fine, because it gets cached based on the input, no?
I did use ?input instead of &input, I'm surprised that it worked though
[[!snippetName? ¶meter=`value` ¶meter2=`value`]]