Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

display an image of limited width (could be integrated into a slider, a grid or a list) with (optionally) a text above or below the image.

Picture:

...

Expand
titleJSON Schema

localized properties must be adapted to match your e-shop languages.

Code Block
languagejson
{
  "title": "Image",
  "type": "object",
  "properties": {
    "image": {
      "type": "object",
      "title": "Image",
      "properties": {
        "de": {
          "type": "string",
          "description": "label in German"
        },
        "fr": {
          "type": "string",
          "description": "label in French"
        }
      }
    },
    "title": {
      "type": "object",
      "title": "Label",
      "description": "Optional, if no title, leave empty",
      "properties": {
        "de": {
          "type": "string",
          "description": "label in German"
        },
        "fr": {
          "type": "string",
          "description": "label in French"
        }
      }
    },
    "title_position": {
      "type": "string",
      "description": "Position of the title (below or above the image))",
      "enum":["top","bottom"]
    },
    "alt_text": {
      "type": "object",
      "title": "Alt text when the mouse over the image",
      "properties": {
        "de": {
          "type": "string",
          "description": "alt text in German"
        },
        "fr": {
          "type": "string",
          "description": "alt text in French"
        }
      }
    },
    "link_url": {
      "type": "object",
      "title": "Link when the user clicks on the image ()or the title)",
      "properties": {
        "de": {
          "type": "string",
          "description": "link in German"
        },
        "fr": {
          "type": "string",
          "description": "link in French"
        }
      }
    },
    "accessor": {
      "type": "string",
      "description": "hits accessor (typically leave empty)"
    }
  }
}

Complete Layout Block:

View file
nameimage_cell.json