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.

Possible to search within both weblogs and member profiles from a single form?

March 12, 2009 6:08am

Subscribe [4]
  • #1 / Mar 12, 2009 6:08am

    sthmtc

    11 posts

    The project we are currently working on contains a “staff” section, where every staff member has its own profile page. (Made with Solspace’s User module.)

    Therefore we would like to expand the global search form to not only search within weblogs but also within the members. On the ExpressionEngine homepage this is being listed as a feature:

    Powerful search module with simple and advanced search capability. You can search within weblogs, comments, members, and categories.

    However, I can’t seem to find any documentation on this. Right now my search form looks like this:

    {exp:search:simple_form weblog="projects|news" result_page="search/results" no_results_page="search/noresults" search_in="everywhere"}
    <input type="text" name="keywords" id="search_query" value="search…" size="18" maxlength="90">
    <input id="search_go" type="submit" value="go" class="submit" size="18" maxlength="30"/>
    {/exp:search:simple_form}

    How can I search within members with that search form?

  • #2 / Mar 12, 2009 10:07am

    Sue Crocker

    26054 posts

    sthmtc, have you seen this in the docs? EEDocs:// Simple Search Member Name

  • #3 / Mar 13, 2009 7:27pm

    EliVZ

    37 posts

    I think what sthmtc is asking (and know for sure it’s what I’m asking) is how to make members show up in the search results, rather than how to limit the search results by author. So for instance, if I searched the site for my own name my profile page would show up in the results, as well as any weblog entry that mentions me.

    I know the the User module lets you search the member list, but is there any way to integrate the two? Otherwise, am I going to have to create a new weblog and duplicate all the info from the member accounts to have a workable “Staff” section?

  • #4 / Mar 13, 2009 7:29pm

    sthmtc

    11 posts

    ^Yup, this is what I meant. I’m in the process of custom building my own search by now but I’d love to come up with an easier solution.

  • #5 / Mar 13, 2009 7:49pm

    Sue Crocker

    26054 posts

    A staff container would be one way of handling it. I suppose you could create some sort of extension that would make the entry automagically. Sounds like a good feature request, though.

  • #6 / Mar 13, 2009 8:04pm

    EliVZ

    37 posts

    So what’s the deal with the description of the search feature that sthmtc quoted? If there really is no way to do this, that description is pretty misleading.

    I’ll post back here if I figure out any good way to implement this.

  • #7 / Mar 14, 2009 11:16am

    Ingmar

    29245 posts

    As Sue said, the easiest way would be to setup a “staff” weblog for that purpose, using whatever custom fields you need. There is a way to restrict the search by member, but not search member profiles as such.

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

ExpressionEngine News!

#eecms, #events, #releases