Copied to clipboard

Flag this post as spam?

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


  • Milan 4 posts 74 karma points
    Jul 15, 2022 @ 04:32
    Milan
    0

    How to create Filter

    How to create Filter enter image description here

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Jul 15, 2022 @ 07:49
    Chriztian Steinmeier
    0

    Hi Milan,

    It's not totally clear for me which kind of filter you are hoping to create - are you asking about an image filter (brightness/tint etc.) or are you asking about a content filter (to filter the list of images)?

    If you can tell us what you have and what you'd like to be able to do, it's a lot easier to find a way to help you 👍

    /Chriztian

  • Milan 4 posts 74 karma points
    Jul 15, 2022 @ 08:27
    Milan
    0

    When you click all project, all projects should appear, when you click decking the decking projects only appear

    enter image description here enter image description here

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Jul 15, 2022 @ 17:57
    Chriztian Steinmeier
    0

    Alright - here's how I usually do this:

    • I have a single template that does this based on which Model object it receives
    • This template is used on the Projects page but also on each of its children (Boardwalk, Decking etc. in your example)

    The template can get the projects to render by using something like Model.Descendants<ProjectModelName>() (where ProjectModelName is the name of the Document Type used for Decking 1, Decking 2 etc.)

    I wrote a longer article a while ago about a very similar use case that you might find useful: https://skrift.io/issues/hotwiring-umbraco-with-turbo/

    Hope that helps,

    /Chriztian

  • Milan 4 posts 74 karma points
    Jul 18, 2022 @ 03:36
    Milan
    0

    Thank You I will Check

Please Sign in or register to post replies

Write your reply to:

Draft