Skip to content

Latest commit

 

History

History
54 lines (48 loc) · 2.8 KB

CreateImageGalleryCmsSectionParamsCmsSection.md

File metadata and controls

54 lines (48 loc) · 2.8 KB

SpreeClient::CreateImageGalleryCmsSectionParamsCmsSection

Properties

Name Type Description Notes
name String Give this section a name.
cms_page_id String Set the `cms_page` ID that this section belongs to.
type String Set the section type.
position Integer Pass the position that you want this section to appear in. (The list is not zero indexed, so the first item is position: `1`) [optional]
link_type_one String Set the resource type that image one links to. [optional]
link_type_two String Set the resource type that image two links to. [optional]
link_type_three String Set the resource type that image three links to. [optional]
link_one String Set the slug or path that image two links to. [optional]
link_two String Set the slug or path that image two links to. [optional]
link_three String Set the slug or path that image three links to. [optional]
title_one String Set the title used in image one. [optional]
title_two String Set the title used in image two. [optional]
title_three String Set the title used in image three. [optional]
fit String This value is used by front end developers to set CSS classes for content that fits the screen edge-to-edge, or stays within the boundaries of the central container. [optional]
layout_style String This value is used by front end developers for styling the order the images appear. [optional]
display_labels String This value is used by front end developers for showing and hiding the label on the images. [optional]
cms_section_image_one File Use a `multipart/form-data` request to upload assets. [optional]
cms_section_image_two File Use a `multipart/form-data` request to upload assets. [optional]
cms_section_image_three File Use a `multipart/form-data` request to upload assets. [optional]

Example

require 'spree_client'

instance = SpreeClient::CreateImageGalleryCmsSectionParamsCmsSection.new(
  name: null,
  cms_page_id: null,
  type: Spree::Cms::Sections::ImageGallery,
  position: 2,
  link_type_one: Spree::Taxon,
  link_type_two: Spree::Taxon,
  link_type_three: Spree::Taxon,
  link_one: men/shirts,
  link_two: white-shirt,
  link_three: red-shirt,
  title_one: Shop Men's Shirts,
  title_two: Buy This Men's Shirt,
  title_three: Buy This Women's Skirt,
  fit: Screen,
  layout_style: Default,
  display_labels: Show,
  cms_section_image_one: null,
  cms_section_image_two: null,
  cms_section_image_three: null
)