Custom Export with Images

Sample entries type template HTML code to export images. [BETA]

  1. Go to studio
  2. Template
  3. Add new
  4. Under Code
  5. Write the HTML code
  6. Advacnced setting
  • Type: Spreadsheet
  • Data source: Entries

Sample Entries

Sample HTML Code

{
def getPhoto(path):
     return "<img height=50% width=50% src='https://api.inistate.com/" + path.ToString() + "'/>"
}

<table>
    <tr>
        <td>Images</td>
        <td>Item Name</td>
        <td>Name</td>
    </tr>
    {start-repeat:x in entries}
    <tr>
        <td>{start-repeat:image in x.field('Images')}
            {getPhoto(image.path)}
            {end-repeat}
        </td>
        <td>{x['Item Code']}</td>
        <td>{x['Name']}</td>
    </tr>
    {end-repeat}
</table>

Result