Skip to main content
Problem Solver I
July 16, 2024
Solved

Custom Product Blogs: Show Items from item x

  • July 16, 2024
  • 4 replies
  • 127 views

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!

    This topic has been closed for replies.
    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.

     

     

    4 replies

    Problem Solver I
    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 ?

    MathildeAuthor
    Problem Solver I
    July 17, 2024

    @Gutsu91

    Hi!

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

    Gutsu91Answer
    Problem Solver I
    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.

     

     

    MathildeAuthor
    Problem Solver I
    July 17, 2024

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