Robin S Posted July 20, 2017 Posted July 20, 2017 @robinc, check out this module code in a Gist by @adrian: https://gist.github.com/adrianbj/2b3b6b40f64a816d397f 3
neophron Posted December 9, 2021 Posted December 9, 2021 Hi, for my personal websites with a lot of paintings, I installed your module and it is really helpful ? Recently I'm getting this error in the backend from Tracy (check screenshot). I have a 3.0.184 multi language installation. 153: } elseif($v instanceof \ProcessWire\Pageimage && $v) { 154: $thumb_url = $v->getCrop($subfield); 155: $thumb_url = $v->pagefiles->url . $this->resizeThumb($v, $thumb_url, $size); 156: } 157: 158: } else { // all normal image fields 159: 160: if($v instanceof \ProcessWire\Pageimages && count($v)) { 161: $thumb_url = $page->$field->first()->size($size[0],$size[1])->url; 162: } elseif($v instanceof \ProcessWire\Pageimage && $v) { 163: $thumb_url = $page->$field->size($size[0],$size[1])->url; 164: } 165: 166: } After skipping the error message, I'm getting an javascript error when I click on a > in the page tree (like »Liguria«).
neophron Posted December 9, 2021 Posted December 9, 2021 4 hours ago, neophron said: Hi, for my personal websites with a lot of paintings, I installed your module and it is really helpful ? Recently I'm getting this error in the backend from Tracy (check screenshot). I have a 3.0.184 multi language installation. 153: } elseif($v instanceof \ProcessWire\Pageimage && $v) { 154: $thumb_url = $v->getCrop($subfield); 155: $thumb_url = $v->pagefiles->url . $this->resizeThumb($v, $thumb_url, $size); 156: } 157: 158: } else { // all normal image fields 159: 160: if($v instanceof \ProcessWire\Pageimages && count($v)) { 161: $thumb_url = $page->$field->first()->size($size[0],$size[1])->url; 162: } elseif($v instanceof \ProcessWire\Pageimage && $v) { 163: $thumb_url = $page->$field->size($size[0],$size[1])->url; 164: } 165: 166: } After skipping the error message, I'm getting an javascript error when I click on a > in the page tree (like »Liguria«). Ok, I solved this problem by deinstalling and installing it again.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now