I have been looking up and down and everywhere on how to add a search box to my elgg 1.7 homepage (for non-logged in users). I am using the Custom Index Widgets plugin, but search does not show up in my list of widgets to add to the home page. Is there code to do this, or some kind of widget I have to install? I can't believe that this is so hard to do, when it should be a VERY common thing people want.
Example: http://demo.saugususd.org/
Thanks!
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.
Juipo - 0 likes
- Sherri@sherriw
Sherri - 0 likes
Juipo - 0 likes
- Mike Zacher (vazco)@vazco
Mike Zacher (vazco) - 0 likes
You must log in to post replies.Sherri, there is no widget for search box, just open up Elgg\views\default\page_elements\elgg_topbar.php and copy search box code to your Custom Index where you want it to showup.
This is the code:
Thanks!
For anyone looking for more info:
I edited this file: views/default/page_elements/header_contents.php
And added this code above the "display the title" line:
<div style="display:inline;float:right;"><?php echo elgg_view('page_elements/searchbox'); ?></div>
Did that work for you?
Sherri, vazco_mainpage plugin has search widget, along with many other interresting ones.