ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Displaying search results from each Channel

December 20, 2010 6:16pm

Subscribe [4]
  • #1 / Dec 20, 2010 6:16pm

    SimonBlink24

    1 posts

    Hello,

    I’ve done quite a bit of searching on this topic, so please point me in the right way if I’ve missed it.

    I have a simple search form which searches three different Channels. I wish to display the search results accordingly:

    Blog:
    result
    result
    result

    Portfolio:
    result
    result
    result

    Something else:
    result
    result
    result

    Any idea how I can implement this?

    Many thanks!
    Simon

  • #2 / Dec 21, 2010 12:46pm

    Barry Cogan

    291 posts

    Hi SimonBlink24,

    Currently ExpressionEngine does not natively support grouping search results by channel like your example above.

    The the {channel_short_name} variable is one of your entry results so it could be possible to use a javascript library like jQuery to sort the results after they are processed. We will move your post to the CodeShare Corner where you can explore this option with the community.

    Also devot-ee.com holds quite a collection of third party add-ons, one of which my be exactly what you are looking for.

    A third option would be to color code your result rows based on the {channel_short_name}.

    Sincerely,

    Barry Cogan

  • #3 / Dec 21, 2010 2:42pm

    John St-Amand

    865 posts

    Check devot-ee for the string plugin.  I’ve not yet used it on search results, but it should still work.  It allows you to set an element you want your looped entries to be grouped by.  I’ve used it for non-category grouping of entries, pulling from a commonly selected drop-down value, for example.  It might do the trick.  Hope that helps.

  • #4 / Dec 26, 2010 10:21pm

    mhughes73

    60 posts

    Try Search Results 1.2

    http://www.planet-ee.com/search.html

    It allows you to group results by channel and various other combination’s.

    Hope that helps

    Mike

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases