File details- cms_block.csv

Edit on GitHub

This article contains content of the cms_block.csv file to configure CMS Block information on your Spryker Demo Shop.

Headers & Mandatory Fields

These are the header fields to be included in the .csv file:

Field Name Mandatory Type Other Requirements/Comments Description
block_key Yes String N/A* Block key identifier
block_name Yes (unique) String Human-readable name. Name of the block.
template_name No String N/A Alphabetical identifier of the slot. It will be shown in the Back Office.
template_path No String Must be a valid path to a twig template. Path to the Twig file template.
active No Boolean
  • Inactive = 0
  • Active = 1
  • If empty during the import, the block will be imported as inactive.
Indicates if the block is active or inactive.
placeholder.title.{ANY_LOCALE_NAME} **
Example value: placeholder.title.en_US
No String N/A Placeholder for block title, translated into the specified locale (US for our example).
placeholder.description.{ANY_LOCALE_NAME}
Example value: placeholder.description.en_US
No String N/A Placeholder for block description, translated into the specified locale (US for our example).
placeholder.link.{ANY_LOCALE_NAME}
Example value: placeholder.link.en_US
No String N/A Placeholder for block link, translated into the specified locale (US for our example).
placeholder.content.{ANY_LOCALE_NAME}
Example value: placeholder.content.en_US
No String N/A Placeholder for block content, translated into the specified locale (US for our example).
*N/A: Not applicable.
** ANY_LOCALE_NAME: Locale date is dynamic in data importers. It means that ANY_LOCALE_NAME postifx can be changed, removed, and any number of columns with different locales can be added to the .csv files.

Dependencies

This file has no dependencies.

Template File & Content Example

A template and an example of the cms_block.csv file can be downloaded here:

File Description
cms_block.csv template CMS Block .csv template file (empty content, contains headers only).
cms_block.csv CMS Block .csv file containing a Demo Shop data sample.