search module
search module
just got this and very happy with it, the only thing i thought may be missing is a search module. on our site we have a section just for uploaded tracks/routes so a search module would have been handy
I did get around this and just thought i would share it with others that may need the same thing
I installed Jumi and then created a php file and pointed the jumi at it
sure this is not the best way but works fine so we can have the search on all the pages for that section of the site, then just removed the code for the search in the component
please make a search module, but for the money this is a great bit of kit
I did get around this and just thought i would share it with others that may need the same thing
I installed Jumi and then created a php file and pointed the jumi at it
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$menu = &JSite::getMenu();
$mnuitem = $menu->getItems('link', 'index.php?option='.G_APP_NAME.'&view=gpstools', true);
$itemid = isset($mnuitem) ? '&Itemid='.$mnuitem->id : '';
?>
<div class="searchform-wrapper">
<form id="searchform" action="index.php?option=<?php echo G_APP_NAME;?>&view=gpstools&task=search<?php echo $itemid;?>" method="post">
<input name="searchkey" id="gps_search" type="text" size="20"/>
<input type="submit" class="readon" "id="btn_search" value="Search">
<input type="hidden" name="option" value="<?php echo G_APP_NAME;?>">
<input type="hidden" name="view" value="gpstools">
<input type="hidden" name="task" value="search">
<input type="hidden" name="Itemid" value="<?php echo isset($mnuitem)?$mnuitem->id:'';?>">
</form>
</div>
sure this is not the best way but works fine so we can have the search on all the pages for that section of the site, then just removed the code for the search in the component
please make a search module, but for the money this is a great bit of kit
Access to viewing replies is restricted.
Showing 8 of 8 replies
You do not have permissions for replying to this topic.