Instagram clone, logged in users avatar in static navigation

Hi,

the instagram clone has a navigation on the bottom of the page. I would like to have the avatar in small (like on instagram) on this navigation bar.
when I am in “profile” the avatar in the middle can fetch data from the data set of “profile”.

how can I fetch the “avatar” that belongs to the currently logged in user on every page, so it’s shown all the time and updates automatically?

Hello @Michael_Goldner

Welcome to the community and thanks for trying Backendless!

According to your question, you need to add an Image component and then bind the Source URL Logic to the value of the current user from the PageData

You need to repeat this on all the pages. We are working on the Reusable Components feature that will allow us to change it once and then use it everywhere.

Regards, Vlad

Hi Vladirmir,

thanks for your answer!
I see, this is what I thought, but how can I bind the currents users avatar to page data in the first place?

br
Michael

Hello @Michael_Goldner

You can use block “get current user” on any page. It get you info about user data, including avatar data too.
You can see example on page “profile”


32
34
35

Regards,
Viktor