Post type scroll

Written by

in

,

Show post types in a scrollable list. Based on the dekode.no scroll component.

The block

The block allows you to select posts or select post type and display assigned posts in a scrollable swiper based list.

The block uses T2 Featured card layout to display the posts.

The block allows to control

  • Post type to fetch posts from
  • Manually select posts
  • Exclude current post from query if post type is selected.
  • The number of posts to show
  • The number of posts to show in the slider
  • Show or hide the block title
  • Add custom more link
  • Placement of read more link (top/ bottom)
  • Read more button style – based on registered core button styles.

Orginally developed for Litex, Examples usage stage: https://litex-2025.dev09.dekodes.no/

See more info:
https://github.com/DekodeInteraktiv/dekode-library/tree/main/library/post-type-scroll