Forum Discussion

dkytasaari's avatar
8 years ago

Need custom component to display user's location in Profile Hero

I want to display a user's location in the Profile Hero.  I don't see where there is a stock component to display this information, which means I need to create a custom component.  I cannot find an ...
  • VikasB's avatar
    VikasB
    8 years ago

    Hi dkytasaari  You are missing ending quote(") in your query.

    Here is updated one

    <#assign userLOC= rest("2.0","/search?q=" + "SELECT login from users where id='${page.context.user.id}'"?url).data.items[0] />
    <div>
        ${userLOC.login}
    </div>

    Also, I do not think so there is any location field in API.