I have a component in the side menu. The component is made out of text (Project’s Name) and collection list (Collection List). The collection list has 2 items, icon + text. How do I bind the Icon+text from the collection list to an ID, so that when I click on the link on the side menu, it fetches the right ID from the collection? It seems not to connect the #step_id to item.data.id
I’m not sure i understand your question properly.
Every item in Collection List is an object (item.data), so you have all data in the item.
What I am seeing is you are setting the step_id to this item id, then fetching and changing page.
“How do I bind the Icon+text from the collection list to an ID, so that when I click on the link on the side menu, it fetches the right ID from the collection?”
What ID do you want to bind this to?
What is the issue you are facing? It looks alright to me (Although, maybe i don’t understand what is not working)
My component is made out of Project Name and Collection List. In the Collection list I have an Icon and Text, which are bind to the Collection. I would like that on a click (on the icon+text from the Collection List) Weweb fetches the collection item ID and navigates to a page with this collection item ID.
The process I used on the Project’s Name: I linked the title and the Project ID to a Data Collection from Xano. The workflow on the button then fetches the project ID and links it to my variable #project_id that is send to Xano, to get the right collection (orange items). Obviously it doesn’t work the same for the item.data.id, as it is inside the collection (violet items). I guess I am missing, how to explain Weweb to fetch the item.data.id from the Collection list 0/1/2,…