search function

Have anybody a solution for a search function where you can only search in the group you choose?

  • i'm sure this can be done.. might need *some coding effort. you'll most likely be liimited to tags searching only... for now.

  • mmm... nice idea!  If this has been done, or is doable, I'd be interested...

  • I imagine that this would be more useful with the full text feature in Elgg 1.7 than in previous versions.

  • Lovegin John

    I think it would be easily doable by overriding the search result action in which we limit the search into groups...

  • How should I change this code in search index if i want that only search results (topicposts) in group1 will be shown?

    add_submenu_item(elgg_echo('group1'), $CONFIG->wwwroot . "search/?tag=". urlencode($tag) ."&subtype=" . $object_subtype . "&object=". urlencode($object_type) ."&tagtype=" . urlencode($md_type) . "&owner_guid=" . urlencode($owner_guid).$tagSearchString);

  • I tried this:

    add_submenu_item(elgg_echo('group1'), $CONFIG->wwwroot . "search/?tag=". urlencode($tag) . "&subtype=groupforumtopic" . "&group_guid=5" . "&tagtype=" . urlencode($md_type) . "&owner_guid=" . urlencode($owner_guid).$tagSearchString);

    but it shows me all topicposts. What should I change in this code that it displays me only the topicposts of group1? I don't know if it's the right way with the group_guid.

  • Maybe this would only be realizable with sql command? If so, how would the sql command look?