Loading ...

Search Widget Results - Need to customise the Result of the User Profile | Communifire Support

Home » Spaces » Communifire Support » forum » Features and Functionality » Search Widget Results - Need to customise the Result of the User Profile
Communifire Support

Leave Space :

Are you sure you want to leave this space?

Join this space:

Join this space?

Add a new tab

Add a hyperlink to the space navigation. You can link to internal or external web pages. Enter the Tab name and Tab URL. Upload or choose an icon. Then click Save.

The name that will appear in the space navigation.
The url can point to an internal or external web page.
Login to follow, share, and participate in this space.
Don’t have a support community login?Create your account now
Posted in: Features and Functionality

Search Widget Results - Need to customise the Result of the User Profile

Subscribe to RSS
  • AnanthiDevi

    Hi Axero Support Team,

    We have used the Search widget on a page in the ARConnect Application. Below is the snapshot of the search using the Textbox to search for the keyword "Kristin". It returns the result based on the keyword which matches the user profile in the ARConnect Application. 

    When I looked into the source code, it returns the axero communifire result through the jquery(inbuilt result format)

    Source code:

    jQuery(function() {
    Communifire.EmployeeLookupWidget.init({
    context: jQuery('#axero-employee-lookup-widget-{{WidgetID}}'),
    searchBox:'#txtKeywords',
    pnlResults: '#pnlResults',
    noOfRecords: 20,
    spaceID: {{Contents.SpaceID}}
    });
    });

     

    Please help us to address this issue and Thanks in advance!

    Regards,

    Sasikala

  • gskamau

    Hey Ananthi,

    It looks like the search widget is using the Employee Lookup Template . Edit the widget, click the Template tab, and select Search Template .

    Grace

  • AnanthiDevi

    Thanks for the response Grace!

    I still need to use the Employee Lookup Template only. I would like to customize the result of the profile details. We are assigning the pnlResults to div which has the ID called "pnlResults" on the Employee template. 

    I want to know, from where the pnlResults(search Results) comes. Because I really need to modify the content of the pnlResults.

    In the below screenshot, Kristin's profile details are shown up with the "User Name", "Designation", "Profession Points". likewise, I want to add another information into the result.

    Hope you understood what we wanted to do. 

    please let me know if you need any clarification.

  • alligatorphil

    Hi Grace,

    When looking at the contents of the Employee Lookup template, it doesn't appear that the template driving how search results are rendered is actually contained here.  There is a jQuery function that populates the results list, but the properties that you see in each search result (name, title, points, etc) are not chosen here.   There must be some other template driving how search results are rendered.

  • gskamau
    Answered

    Hey Ananthi and Philip,

    There isn't a way to customize the content returned by the Employee Lookup search widget.

    Grace

  • gskamau

    Hey Ananthi and Philip,

    As an alternative, you can customize the people directory in Browse People , which is searchable. Go to Control Panel > System > Page Builder Templates . Under Widget Type, select People and edit the People Directory - List Template .

    Grace

  • alligatorphil

    Thanks Grace.  We have actually already customized the People Directory search results and were hoping there was a similar means to customize results returned by Search widgets that we might deploy on various Page Builder pages. 

    We worked around it by invoking our own JS function (instead of  Communifire.EmployeeLookupWidget) to handle retrieving the template and search results.  

    Chris Brooks 

Page 1 of 1 (7 items)