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.

Multiple Search Results formatting.

March 15, 2012 3:49am

Subscribe [2]
  • #1 / Mar 15, 2012 3:49am

    I have a two channels News and Products.
    I can search both with simple search OK.
    When I get the results page I would like to display my News items in one format (probably a list) and my products in different HTML formatting (probably divs floated to create a grid).
    Is that possible to do? I haven’t found a way to do it with the search tags available in EE2?
    If that is possible I would like to paginate each set of results depending on how many in each.
    Can I put 2 sets of search results tags and break them out by channel maybe?
    If that is possible what would be the tag?
    Any help would be much appreciated.

  • #2 / Mar 16, 2012 10:19am

    Shane Eckert

    7174 posts

    Hello Virgil,

    Thank you for posting your question.

    I do not think you can accomplish this with a pair of Comment Results tag. Some SQL or PHP might be in order to sort the results by channel.

    There are several Add-Ons at Devot://ee that deal with search results. Search Results and Low Search to name a few.

    I hope this helps. Please let me know if you need anything else.

    Cheers,

  • #3 / Mar 17, 2012 2:10am

    Shane
    Thanks for the reply.
    I have installed Search Results 1.3 on getting some feedback from the Planet/EE crew. Using a conditional statement within their results set you can separate out the results set and format them differently which is what I was trying to achieve.
    I am working further to see if I can include all the custom fields I want in each format sp I can show my articles and products grid. Looks promising.
    Planet/EE were very helpful.
    Thanks again.
    Virg…

  • #4 / Mar 19, 2012 1:16pm

    Shane Eckert

    7174 posts

    Hey Virgil,

    That’s awesome. I am happy to hear it.

    If you need help with anything else, please let me know in a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases