The multiple image field is used to manage multiple images. It is suitable for building carousel displays or photo galleries within articles.

For information on uploading using the API and CSV, please refer to the following documentation.
Setting Item | Description |
|---|---|
Required Field | When enabled, input is required during submission. |
Description | This is the description displayed on the submission screen. |
Image Size Limit | Limits the values of the image's |
Layout | Sets the display in the Administration console. The default is scrollable, and it can be set to 2-4 columns. |
Initial Value | You can set up to 5 initial images for submission. |
Please refer to the documentation below for details.
The multiple image field returns an array of objects containing image information (url, width, height, alt). You can process the array sequentially and pass the information of each element to the component for display.
export default async function Page({ params }) {
const { slug } = await params;
// Fetch data using the microCMS JavaScript SDK (https://github.com/microcmsio/microcms-js-sdk)
const data = await client.getListDetail({
endpoint: "blog",
contentId: slug,
});
return (
<main>
{/* imageList is the field ID. Please replace it with the actual field ID */}
{data.imageList.map((image,index) => (
<Image
key={index}
src={`${image.url}?w=800&fm=webp`} // Specify the image API
alt={image.alt || ""}
width={image.width}
height={image.height}
/>
))}
</main>
);
}