Support

  1. Zephyrinus
  2. General
  3. Friday, June 26 2015, 11:03 AM
Hi,

Attached you'll find our custom search bar module. And test on (http://dinst.nl/test-pagina)

We changed the standard Value/placeholder to "selecteer enkele opties"

1. Is there a way (difficult or not) to write (placeholder?) within the first field "Kies een dienst" (choose service) and the other "Selecteer jouw regio" (choose region)?

2. Then we need these multiple select list to remain multiple as is for profile owners to multi-select, but the search module needs to select 1 option only.

3. We need the "type-matching" function. If we start typing "Thui..." it will select the available options "thuiskappers / Thuiszorg / Thuiszorg overig".. But "Kapp..." does not match with "Thuiskappers" because it only matches with the same start characters. Can we match combinations within words?


We really need this, and i saw some forum question regarding the same sollutions. Can you please help us how to edit which files to get this working?

I would really appreciate that.

You're support has been flawless!

Warm regards,

Dennis
Attachments (1)
admin Accepted Answer
Admin
Hi,

1. 2.
there are many way to do this, the most simple is to use Javascript, try to add this javascript code:
jQuery(document).ready(function($)
{
$('#jsearchform297_categorie').attr('data-placeholder','choose service').chosen({max_selected_options: 1});
$('#jsearchform297_regio').attr('data-placeholder','choose region').chosen({max_selected_options: 1});
});


Note: jsearchform297_categorie and jsearchform297_regio are CSS id of your selects, are composed by jsearchform*module_id*_*alias_of_field*

3. Joomla use Jquery Chosen to generate these Select box, I think there is a way to do this, but we don't know :( . You need to find some docs about some event triggered from jquery chosen (maybe at http://harvesthq.github.io/chosen/)
  1. more than a month ago
  2. General
  3. # 1
Zephyrinus Accepted Answer
Pro
Thanx,

But where do i add this code. Also the jquery Chosen option are found, but don't know how to edit.

custom.js doesn't seem to work. Conflicts maybe? Where can we change this, in which files?
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,
try to add this code in module template:

- Copy file /modules/mod_jsnsearch/tmpl/default.php into /templates/your-template-folder/html/mod_jsnsearch/custom.php
- Insert Javascript into new custom.php (at the end for example)
<script>
jQuery(document).ready(function($)
{
$('#jsearchform297_categorie').attr('data-placeholder','choose service').chosen({max_selected_options: 1});
$('#jsearchform297_regio').attr('data-placeholder','choose region').chosen({max_selected_options: 1});
});
</script>

- In your module choose custom layout from parameter "Advanced"->"Alternative Layout"

With this you override the module template with your custom template, this is best way because the javascript code will be active only when this module is active.
  1. more than a month ago
  2. General
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Online

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.