Copied to clipboard

Flag this post as spam?

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


  • Francis 3 posts 73 karma points
    Sep 16, 2022 @ 15:41
    Francis
    0

    How do I create a dropdown filter into a listview Umbraco

    I have a group of posts I want to create a dropdown filter using a custom field named categories, for example:

    • History
    • Activity
    • Opportunity

    The screenshot of the listview: enter image description here

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 7x admin c-trib
    Sep 16, 2022 @ 16:12
    Chriztian Steinmeier
    1

    Hi Francis,

    You should be able to use value[0] in the Template field for the column, to make it look nicer.

    Hope that helps,

    /Chriztian

  • Francis 3 posts 73 karma points
    Sep 16, 2022 @ 16:25
    Francis
    0

    Oh, thank you Chriztian Steinmeier,

    I applied your suggestion it works. enter image description here I need to create a dropdown list using the elements in a checkbox list to filter every post. enter image description here

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 7x admin c-trib
    Sep 16, 2022 @ 17:37
    Chriztian Steinmeier
    1

    Ah - I didn't catch that...

    Just in case that's enough; the list is sortable by clicking the "Category" label.

    If you really need to add a dropdown for filtering, you'll need to create a custom ListView.

    While it's written for Umbraco 7, I'm sure most of the principles etc. are applicable to v8+ too, so have a look at this article:

    https://24days.in/umbraco-cms/2016/custom-list-view-layouts/

    /Chriztian

  • Francis 3 posts 73 karma points
    Sep 16, 2022 @ 19:28
    Francis
    0

    Thank you Chriztian Steinmeier,

    I will check it.

Please Sign in or register to post replies

Write your reply to:

Draft