Have anybody a solution for a search function where you can only search in the group you choose?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- Mark Bridges@MisterBridges

Mark Bridges - 0 likes
- Kevin Jardine@kevin

Kevin Jardine - 0 likes

Lovegin John - 0 likes
- adrian@adriann

adrian - 0 likes
- adrian@adriann

adrian - 0 likes
- adrian@adriann

adrian - 0 likes
You must log in to post replies.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.
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?