By James on Wednesday, 12 September 2018
Posted in General Issues
Likes 0
Views 510
Votes 0
Can you provide information about how to go about displaying additional details in search results? Specifically for event search results. For example, we would like to show the event location and possibly another field data if possible. This is with regards to the EasySocial Advanced Search page.

Thank you,
James
Hi James,

It is not possible to add event details to the advanced search results through settings.

If you want to edit the respective file, you may refer to the following:
JoomlaFolder/components/com_easysocial/themes/wireframe/helpers/listing/event.php
·
Wednesday, 12 September 2018 12:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Raymond,

Is this the correct documentation for Field Display: https://stackideas.com/docs/easysocial/developers/custom-fields/triggers
·
Wednesday, 12 September 2018 13:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey James,

The display function from that documentation is for displaying the field in the user profile about/edit page, meaning it's not for the search results listing page.

You can retrieve the event location by using $event->address since this value is available in the clusters table.
·
Wednesday, 12 September 2018 13:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Raymond, I tried this but no luck.

Please see the attached screenshots.

Thank you,
James
·
Thursday, 13 September 2018 01:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey James,

The address is not a function, so it's not ->address(), instead it is only ->address.
·
Thursday, 13 September 2018 10:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Raymond.

Can you tell me the appropriate folder to place this new file in as an override?
Also, is it possible to do this for other custom fields related to events?
·
Thursday, 13 September 2018 21:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey James,

You may find the template override file in the themes section(https://www.screencast.com/t/pKKutJpTPbeW). Editing the file and save will also auto create the override file in your template.
Also, is it possible to do this for other custom fields related to events?
What kind of custom field you are referring to?

You may retrieve custom field values from the event using the following code and the unique key of the custom field.

$event->getFieldValue('keyhere');
https://www.screencast.com/t/WUmESZgxC
·
Friday, 14 September 2018 11:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Raymond! I appreciate all of your help. Hope you have a good weekend.
·
Sunday, 16 September 2018 09:41
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Sunday, 16 September 2018 09:46
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post