Main Content

Magnolia Community Forums: Get help with Magnolia: How to filter Content App data in pages?


  • carlos-solislojo
    carlos-solislojo
    Full name: Jose Carlos
    Posts: 5
    Last post: Nov 14, 2016 1:12:20 PM
    Registered on: Sep 30, 2016
    How to filter Content App data in pages?
    #1 by carlos-solislojo on Oct 3, 2016 10:42:37 AM

    Hi again,
    I just made something like this: https://documentation.magnolia-cms.com/display/DOCS/Accessing+content+on+the+server+side

    I have something like the Cars App. Now I want to filter the results by the color and year (for example), with a form in one page.

    There is an easy way to do this?

    Thank you!

  • cmeier
    cmeier
    Full name: Christoph Meier
    Posts: 210
    Last post: Jul 25, 2017 6:09:04 PM
    Re: How to filter Content App data in pages?
    #2 by cmeier on Nov 11, 2016 4:39:12 PM

    Hi Carlos

    Generally spoken, categorize your cars.
    "Eric cars" are not categorized by using the "Categories app".

    Have a look at https://wiki.magnolia-cms.com/display/WIKI/mgnl-conf+2016+workshop+-+dive+into+content+pools+with+Magnolia
    That's something similar as Eric cars, but it goes a bit further. among other things in the apps which are used there, content items have categories.

    I hope this helps, cheers,
    Christoph

  • carlos-solislojo
    carlos-solislojo
    Full name: Jose Carlos
    Posts: 5
    Last post: Nov 14, 2016 1:12:20 PM
    Registered on: Sep 30, 2016
    Re: How to filter Content App data in pages?
    #3 by carlos-solislojo on Nov 14, 2016 12:47:38 PM

    Hi Christoph

    In the end I did it with Java and SQL queries, but thanks for your answer. I'll consider categories in the future.

    Cheers,
    Carlos

  • thenaty22
    thenaty22
    Full name: Thomas Shultz
    Posts: 1
    Last post: Dec 1, 2016 9:15:36 PM
    Registered on: Dec 1, 2016
    Re: How to filter Content App data in pages?
    #4 by thenaty22 on Dec 1, 2016 9:15:36 PM

    THANK YOU VERY MUCH! It is really helpful

  • vicky-midson
    vicky-midson
    Full name: Vicky Midson
    Posts: 3
    Last post: Dec 12, 2016 6:10:48 PM
    Registered on: Dec 12, 2016
    Re: How to filter Content App data in pages?
    #5 by vicky-midson on Dec 12, 2016 3:50:06 PM

    Thanks

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/