Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • J 445 posts 862 karma points
    Feb 04, 2020 @ 11:06
    J
    0

    I have a website with a blog section. Under the root blog page, i have child blogs. Example:

    - Site
    -- Blogs
    --- Blog 1
    --- Blog 2
    --- Blog 3
    --- Blog 4
    

    I would like to display 2 blogs and then have a 'Show more blog' link/button to display the remaining 2 (in this example). I dont mind trying Razor but would like some guidance on how to start with this? Thanks for any advice.

  • MM 29 posts 125 karma points
    Feb 04, 2020 @ 12:03
    MM
    1

    At this point you would want to look at writing an Examine query for showing an initial X amount of blog posts on page load (in your example 2), then when clicking your Load More button you can send a request to then show 2 * Page Number.

    By default Umbraco nodes are indexed, so it will just be about grabbing the correct nodes and getting the correct amount on the button click - you can read more about Examine here

  • J 445 posts 862 karma points
    Feb 04, 2020 @ 12:40
    J
    0

    Thanks Mattew.

    So if i have this installed and configured, would this allow me to have a textbox to search on the page too? Just widening the power of this component, would it allow me to add tags or similar to each blog so if someone searched on "Technology" it would display all the technology blogs?

Please Sign in or register to post replies

Write your reply to:

Draft