Jump to content

Screenshot Pages Field


Recommended Posts

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}}
                        {$record->customFieldDisplayByKey('server-screenshots', 'display')|raw}

Changing {$record->customFieldDisplayByKey('server-screenshots', 'display')|raw} -----> {$fieldValue|raw}. doesn't work either. 


So, is there any way to solve problem 1 & 2? 


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...