I have XANO endpoint GET products/ with list of products, I added such collection to WeWeb.
When I click on product I want to proceed to page single product.
I have endpoint GET ONE product /{{product_id}} and data is different then GET products/ endpoint and I want to use this endpoint to display data on Single product page.
Ive checked your awesome tutorial on XANO JOb board app and it looks like same data from list of jobs is used to populate Single job page via object variable.
I have different amount of data in products & single product endpoints.
How do I Fetch SIngle Item data with {{product_id}} that I pass with navigation from products list?
When I create collection by fetching GET ONE product endpoint it creates only 1 item and not refetch. ANd always product id=1 is displayed if I link elements to that item in Template.
Hello,
Perhaps you can run a workflow on the single page specifically where you use a GET and populate the parameter which you have passed from the collection page to pull the data?
Pass the id of the product that you want to display in a query string variable. Then, on the page the you want to display product details, use that ID in the GET ONE /{{product_id}
When on products collection page I click on item and set variable with product ID and test → it perfectly works and number changes when I click on different items.
But when I proceed to “product Item page” and display this project variable productID on product/single page it doesnt match what i’ve selected previously on product list and it is always default value “1” thats why I always fetch productID=1…
I dont understand why it changes to default if I set it on another page to new value…