Skip to content

Commit

Permalink
Block and media adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
senghe committed Sep 26, 2024
1 parent 6e35c34 commit 71c708a
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 27 deletions.
11 changes: 9 additions & 2 deletions tests/Application/config/packages/fixtures/1_collection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ sylius_fixtures:
blog:
name: "Blog"
type: "page"
page_codes:
- "lorem_ipsum"
homepage:
name: "Homepage"
type: "page"
homepage_banner:
name: "Homepage"
type: "media"
black_friday:
name: "Black Friday"
type: "block"
black_friday_banner:
name: "Black Friday banners"
type: "media"
blog_images:
name: "Blog images"
type: "media"
products_details:
name: "Product details"
type: "block"
41 changes: 38 additions & 3 deletions tests/Application/config/packages/fixtures/1_media.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,24 @@ sylius_fixtures:
options:
custom:
black_friday_banner:
name: "T-Shirts banner"
name: "Black friday banner"
channels:
- "FASHION_WEB"
type: image
path: "%fixtures_dir%/black_friday_banner.png"
original_name: "black_friday_banner.png"
collections:
- "black_friday_banner"
translations:
en_US:
alt: "T-Shirts banner"
alt: "Black friday banner"
homepage_banner_1:
name: "Homepage banner 1"
name: "Homepage banner 1 (black friday)"
channels:
- "FASHION_WEB"
collections:
- "homepage_banner"
- "black_friday_banner"
type: image
path: "%fixtures_dir%/homepage_banner_1.png"
original_name: "homepage_banner_1.png"
Expand All @@ -35,6 +40,8 @@ sylius_fixtures:
name: "Homepage banner 2"
channels:
- "FASHION_WEB"
collections:
- "homepage_banner"
type: image
path: "%fixtures_dir%/homepage_banner_2.png"
original_name: "homepage_banner_2.png"
Expand All @@ -45,6 +52,8 @@ sylius_fixtures:
name: "Homepage banner 3"
channels:
- "FASHION_WEB"
collections:
- "homepage_banner"
type: image
path: "%fixtures_dir%/homepage_banner_3.png"
original_name: "homepage_banner_3.png"
Expand All @@ -55,6 +64,8 @@ sylius_fixtures:
name: "Blog banner"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_banner.png"
original_name: "blog_banner.png"
Expand All @@ -65,6 +76,8 @@ sylius_fixtures:
name: "Blog post 1 banner"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_1_header_banner.png"
original_name: "blog_post_1_header_banner.png"
Expand All @@ -75,6 +88,8 @@ sylius_fixtures:
name: "Blog post 2 banner"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_2_header_banner.png"
original_name: "blog_post_2_header_banner.png"
Expand All @@ -85,6 +100,8 @@ sylius_fixtures:
name: "Blog post 3 banner"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_3_header_banner.png"
original_name: "blog_post_3_header_banner.png"
Expand All @@ -95,6 +112,8 @@ sylius_fixtures:
name: "Blog post 1 teaser"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_1_teaser_image.png"
original_name: "blog_post_1_teaser_image.png"
Expand All @@ -105,6 +124,8 @@ sylius_fixtures:
name: "Blog post 2 teaser"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_2_teaser_image.png"
original_name: "blog_post_2_teaser_image.png"
Expand All @@ -115,6 +136,8 @@ sylius_fixtures:
name: "Blog post 3 teaser"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_3_teaser_image.png"
original_name: "blog_post_3_teaser_image.png"
Expand All @@ -125,6 +148,8 @@ sylius_fixtures:
name: "Blog post 1 content image 1"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_1_content_image_1.png"
original_name: "blog_post_1_content_image_1.png"
Expand All @@ -135,6 +160,8 @@ sylius_fixtures:
name: "Blog post 1 content image 2"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_1_content_image_2.png"
original_name: "blog_post_1_content_image_2.png"
Expand All @@ -145,6 +172,8 @@ sylius_fixtures:
name: "Blog post 2 content image 1"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_2_content_image_1.png"
original_name: "blog_post_2_content_image_1.png"
Expand All @@ -155,6 +184,8 @@ sylius_fixtures:
name: "Blog post 2 content image 2"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_2_content_image_2.png"
original_name: "blog_post_2_content_image_2.png"
Expand All @@ -165,6 +196,8 @@ sylius_fixtures:
name: "Blog post 3 content image 1"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_3_content_image_1.png"
original_name: "blog_post_3_content_image_1.png"
Expand All @@ -175,6 +208,8 @@ sylius_fixtures:
name: "Blog post 3 content image 2"
channels:
- "FASHION_WEB"
collections:
- "blog_images"
type: image
path: "%fixtures_dir%/blog_post_3_content_image_2.png"
original_name: "blog_post_3_content_image_2.png"
Expand Down
39 changes: 17 additions & 22 deletions tests/Application/config/packages/fixtures/2_block.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sylius_fixtures:
options:
custom:
homepage_textarea:
name: "Homepage textarea example"
name: "Welcome in SyliusCmsPlugin!"
channels:
- "FASHION_WEB"
collections:
Expand Down Expand Up @@ -44,7 +44,7 @@ sylius_fixtures:
</ul>
</p>
homepage_products_carousel:
name: "Homepage products carousel example"
name: "See our collection of brand new T-Shirts!"
channels:
- "FASHION_WEB"
collections:
Expand Down Expand Up @@ -75,13 +75,12 @@ sylius_fixtures:
- "Raglan_grey_black_Tee"
- "Oversize_white_cotton_T_Shirt"
homepage_banner_1:
name: "Homepage single media example"
name: "Homepage banner 1"
channels:
- "FASHION_WEB"
collections:
- "homepage"
taxons:
- "t_shirts"
- "black_friday"
content_elements:
en_US:
spacer1:
Expand All @@ -97,27 +96,23 @@ sylius_fixtures:
data:
spacer: 20
homepage_banner_2:
name: "Homepage single media example"
name: "Homepage banner 2"
channels:
- "FASHION_WEB"
collections:
- "homepage"
taxons:
- "t_shirts"
content_elements:
en_US:
single_media:
type: "single_media"
data:
single_media: "homepage_banner_2"
homepage_banner_3:
name: "Homepage single media example"
name: "Homepage banner 3"
channels:
- "FASHION_WEB"
collections:
- "homepage"
taxons:
- "t_shirts"
content_elements:
en_US:
single_media:
Expand All @@ -129,7 +124,7 @@ sylius_fixtures:
data:
spacer: 10
homepage_products_carousel_by_taxon:
name: "Homepage products carousel by taxon example"
name: "How about jeans?"
channels:
- "FASHION_WEB"
collections:
Expand Down Expand Up @@ -170,7 +165,7 @@ sylius_fixtures:
data:
products_carousel_by_taxon: "jeans"
homepage_products_grid:
name: "Homepage products grid example"
name: "Meet our caps brand"
channels:
- "FASHION_WEB"
collections:
Expand Down Expand Up @@ -199,7 +194,7 @@ sylius_fixtures:
- "Knitted_white_pompom_cap"
- "Cashmere_blend_violet_beanie"
homepage_products_grid_by_taxon:
name: "Homepage products grid by taxon example"
name: "See also our dress collection!"
channels:
- "FASHION_WEB"
collections:
Expand Down Expand Up @@ -236,7 +231,7 @@ sylius_fixtures:
data:
products_grid_by_taxon: "dresses"
homepage_taxons_list:
name: "Homepage taxons list example"
name: "Not interested in caps? See all our brands"
channels:
- "FASHION_WEB"
collections:
Expand Down Expand Up @@ -265,7 +260,7 @@ sylius_fixtures:
- "dresses"
- "jeans"
black_friday_banner_taxon:
name: "Taxon single media example"
name: "Black friday banner (taxons)"
channels:
- "FASHION_WEB"
collections:
Expand All @@ -281,15 +276,14 @@ sylius_fixtures:
data:
single_media: "black_friday_banner"
black_friday_banner_product:
name: "Product single media example"
name: "Black friday banner (products)"
channels:
- "FASHION_WEB"
collections:
- "black_friday"
products:
- "Everyday_white_basic_T_Shirt"
- "Loose_white_designer_T_Shirt"
- "Ribbed_copper_slim_fit_Tee"
products_in_taxons:
- "mens_t_shirts"
- "womens_t_shirts"
content_elements:
en_US:
single_media:
Expand All @@ -301,12 +295,13 @@ sylius_fixtures:
data:
spacer: 20
specified_products_in_taxons:
name: "Product details products carousel by taxon example"
name: "You may also like"
channels:
- "FASHION_WEB"
collections:
- "products_details"
products_in_taxons:
- "mens_t_shirts"
- "womens_t_shirts"
content_elements:
en_US:
Expand Down

0 comments on commit 71c708a

Please sign in to comment.