Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 2.27 KB

UpdateSideBySideImagesCmsSectionParamsCmsSection.md

File metadata and controls

46 lines (40 loc) · 2.27 KB

SpreeClient::UpdateSideBySideImagesCmsSectionParamsCmsSection

Properties

Name Type Description Notes
name String Update this section name. [optional]
type String Change the section type. [optional]
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 Update the resource type that image one links to. [optional]
link_type_two String Update the resource type that image two links to. [optional]
link_one String Update the slug or path that image two links to. [optional]
link_two String Update the slug or path that image two links to. [optional]
title_one String Update the title used in image one. [optional]
title_two String Update the title used in image two. [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]
subtitle_one String Update the subtitle used in image one. [optional]
subtitle_two String Update the subtitle used in image two. [optional]
gutters String This value is used by front end developers for styling the section padding. [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]

Example

require 'spree_client'

instance = SpreeClient::UpdateSideBySideImagesCmsSectionParamsCmsSection.new(
  name: null,
  type: Spree::Cms::Sections::ProductCarousel,
  position: 2,
  link_type_one: Spree::Taxon,
  link_type_two: Spree::Taxon,
  link_one: men/shirts,
  link_two: white-shirt,
  title_one: Shop Men's Shirts,
  title_two: Buy This Men's Shirt,
  fit: Screen,
  subtitle_one: Save 50% today,
  subtitle_two: Save 50% today,
  gutters: No Gutters,
  cms_section_image_one: null,
  cms_section_image_two: null
)