Lunars Posted August 18, 2016 Posted August 18, 2016 So, I'm working on a project with someone and they want to have a 'screenshots' field. So I'm trying to use Page's field : Upload. I currently have two problems with this. #1 - You can't limit how many screenshots / images can be uploaded. #2 - My second issue revolves around displaying the uploaded images. I'm trying to get the images that were uploaded (field value) in each separate box. My current code: {{if $screenshotsField = $record->customFieldsForDisplay('screenshots')}} {{foreach $screenshotsField as $fieldId => $fieldValue}} {{if $fieldValue}} <li> {$record->customFieldDisplayByKey('server-screenshots', 'display')|raw} </li> {{endif}} {{endforeach}} {{endif}} Changing {$record->customFieldDisplayByKey('server-screenshots', 'display')|raw} -----> {$fieldValue|raw}. doesn't work either. So, is there any way to solve problem 1 & 2?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.