Support

  1. geri1104
  2. Support
  3. Friday, February 26 2016, 11:22 AM
hi,
in the search field i have "name"
in the backend i have
firstname | lastname

how can i do this:
i want the name search field to search in both fields and display the results.
e.g.
firstname | lastname
john | smith

the search field "name" should display the result for
- john
- john smith
- smith

How can i achieve that?

thx
admin Accepted Answer
Admin
Hi,
you can set search by "Format Name", see screenshot
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 1
geri1104 Accepted Answer
Thanx this works great but same thing for adress.
adress search field should match this two backend fields:
location | postcode and city

can i do this?
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
sorry this is possible.
  1. more than a month ago
  2. Support
  3. # 3
geri1104 Accepted Answer
you mean it is not possible, right?
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
Hi,
ops, sorry for my reply :D (missing something)

Yes, this is not possible with a simple way, but there is an alternative.
you can add a text field (hidden on profile, edit profile and registration) that contains these 3 values and search by this field.
so if you have:
- location: "value1"
- city: "value2"
- postcode: "value3"
then new field will contains "value1 value2 value3"

to fill value in this new field you need to write a simple plugin based on our skeleton plugin, follow these steps:
- Download, Install and Enable Skeleton Plugin (you will find it at http://docs.easy-profile.com/index.php/article/triggers)
- remove samples functions: triggerFieldAvatarUpdate, triggerProfileUpdate
- add function like this:
public function triggerProfileUpdate($user,&$data,$changed,$isNew)
{
$value='';
if( isset( $data[ 'location' ] ) ) $value .= $data[ 'location' ];
if( isset( $data[ 'city' ] ) ) $value .= $data[ 'location' ];
if( isset( $data[ 'postcode' ] ) ) $value .= $data[ 'location' ];
$data[ 'newfieldalias' ] = $value;
}

in this code I assumed following field alias:
location -> location
city -> city
postcode -> postcode
new field -> newfieldalias

NOTE: This code is not tested and not supported, this is only for example purpose.

Docs about API to do this at http://docs.easy-profile.com/index.php/article/triggers
  1. more than a month ago
  2. Support
  3. # 5
geri1104 Accepted Answer
ok, i see.
thanx for the fantastic support!
  1. more than a month ago
  2. Support
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

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.