wqwi853
Member
In my list/form I have an image upload/photo field. Sometimes there may be one image, other times there can be multiple images.
We're trying to create a new custom PDF template that will be able to show the photos displayed on the details page. When exporting the PDF with the code below, it won't handle multiple images. I'm assuming we need to loop these somehow but we're not sure how.
When inspecting the element in web tools it shows something like this in the img tag...
Totally stuck. Any help would be appreciated.
We're trying to create a new custom PDF template that will be able to show the photos displayed on the details page. When exporting the PDF with the code below, it won't handle multiple images. I'm assuming we need to loop these somehow but we're not sure how.
Code:
<?php echo "<strong>Photo(s):</strong> <img src='" . $this->groups['Incident Report System']->elements['photo']->element_ro?>'/><br />
When inspecting the element in web tools it shows something like this in the img tag...
Code:
<img src="/<div%20class=%22fabrikSubElementContainer%22>%0A%09%09%09<div%20class=%22fabrikGalleryImage%22%0D%0A%09%09%09style=%22width:px;height:px;%20vertical-align:%20middle;text-align:%20center;%22>%0D%0A%09%09<img%20class=%22fabrikLightBoxImage%22%20src=%22https://mysite.org/images/photos/HxWwk7RPfK.jpg%22%20alt=%22%22%20title=%22%22%20/>%09%09%09</div>%0D%0A%09%09%0A</div>">
Totally stuck. Any help would be appreciated.