Hi there, I am building a website where people can post a ride with a 'from' and 'to' location. I am using a geo field for this. Now, it is realy essential to have a nice filter module, with two geo fields, one for the start location, and one for the endpoint.
If I make a filter module with only one filter, it works like a charm! But I would like to have two filters, and if I have two geo filters activated their function gets messed up with eachother:
- it sort of ignores the to location you put into the first (from) filter
- the location you put into the second filter will be displayed into the first filter after you hit the search button.
- when moving either the pointer in either the 'from-' or in the 'to' field, you'll see the data in the input id=f_position_lng and other from the first (from) field change. And you never see the data connected to the second (to) field change.
- and a lot more strange stuff, but it's hard to explain, please check the website: http://welovehitchhiking.com/index.php/home/hitchhiking
You can also see the first (from) filter is not 'activated' (eg the circle is getting darker, and the map moves to contain the circle) when it is positioned , and the second is. More extreme, the second filter is activated when you move the first cursor.
I'm not shure weather I am doing something wrong, or this is a bug, but I shurely hope you could help me with this ;) Thanks in advance.
Here's the code I am using as a template, inspired by a post on mintjoomla:
<form action="<?php echo JRoute::_('index.php');?>" method="post" name="filterform" id="filter-form">
<legend>
From
</legend>
<?php echo $filters['kc579cb2dc58069b2189ab1f97814de55']->onRenderFilter($section, TRUE);
//is the 'from' filter
?>
<legend>
To
</legend>
<?php echo $filters['kb3a66c2a7406f2008a02962df1755766']->onRenderFilter($section, TRUE);
//is the 'to' filter
?>
<input type="hidden" name="option" value="com_cobalt">
<input type="hidden" name="view" value="records">
<input type="hidden" name="section_id" value="<?php echo $section->id;?>">
<input type="hidden" name="cat_id" value="<?php echo $cat_id;?>">
<input type="hidden" name="user_id" value="<?php echo ($user_id ? $user_id.':admin' : 0);?>">
<input type="hidden" name="view_what" value="<?php echo $vw;?>">
<input type="hidden" name="task" value="records.filters">
<input type="hidden" name="limitstart" value="0">
<div class="form-actions">
<button type="submit" class="btn btn-primary btn-large">
<?php echo JText::_('CSEARCH');?>
</button>
</div>
</form>
Hi there, I am building a website where people can post a ride with a 'from' and 'to' location. I am using a geo field for this. Now, it is realy essential to have a nice filter module, with two geo fields, one for the start location, and one for the endpoint.
If I make a filter module with only one filter, it works like a charm! But I would like to have two filters, and if I have two geo filters activated their function gets messed up with eachother: - it sort of ignores the to location you put into the first (from) filter - the location you put into the second filter will be displayed into the first filter after you hit the search button. - when moving either the pointer in either the 'from-' or in the 'to' field, you'll see the data in the input id=f_position_lng and other from the first (from) field change. And you never see the data connected to the second (to) field change. - and a lot more strange stuff, but it's hard to explain, please check the website: http://welovehitchhiking.com/index.php/home/hitchhiking
You can also see the first (from) filter is not 'activated' (eg the circle is getting darker, and the map moves to contain the circle) when it is positioned , and the second is. More extreme, the second filter is activated when you move the first cursor.
I'm not shure weather I am doing something wrong, or this is a bug, but I shurely hope you could help me with this ;) Thanks in advance.
Here's the code I am using as a template, inspired by a post on mintjoomla: