Skip to main content
Solved

Custom Product Blogs: Show Items from item x


Forum|alt.badge.img+6

Hi,

I’m using the first set-up from this recipe: https://www.klaviyo.com/blog/solution-recipe-19-simplified-custom-product-blocks

I want to display products in a feed from eg. product nr 20 to product nr 40, instead of just up to 40.

Does anyboady know how to solve that using this section repeat rule as example: feeds.L2_Custome_Maid|slice:100

 

 

Thanks!

Best answer by Gutsu91

Hm, weird. Thats works for my custom product block or even for a string, but I’m not using the Content repeat feature, it’s in plain code. Maybe this needs a specific syntax if used there.

 

 

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

  • Problem Solver I
  • 3 replies
  • July 17, 2024

Hi!

I think it should work if you use the syntax ”<start_number>:<end_number>” in your slice filter:

i.e. : feeds.L2_Custome_Maid|slice:”20:40”

 

Does it work for you ?


Forum|alt.badge.img+6
  • Author
  • Problem Solver I
  • 28 replies
  • July 17, 2024

@Gutsu91

Hi!

Thanks for the  answer, but unfortunately that didn’t do the trick.


  • Problem Solver I
  • 3 replies
  • Answer
  • July 17, 2024

Hm, weird. Thats works for my custom product block or even for a string, but I’m not using the Content repeat feature, it’s in plain code. Maybe this needs a specific syntax if used there.

 

 


Forum|alt.badge.img+6
  • Author
  • Problem Solver I
  • 28 replies
  • July 17, 2024

@Gutsu91 Yes, that makes sense, thanks for helping though!