Hello! I am trying to have a collection of lessons connect to their respective internal page (depending on which item card I click). As you can see in screenshot, I would like to have formula search through the pages collection to grab the appropriate page to link to but it is not working (at least not in editor). Not sure if this is possible, please let me know any thoughts! Thanks!
@flo - for when you are able to check and follow up from OH. Thank you!
Let me share how I’ve solved something similar to see if that sparks ideas. I’ve got a list of calls that you can click on to view details. The calls details page is a template that is dynamically populated on page load. The call list row is mapped to a collection, that when clicked, passes the call ID to the call detail page using queries. When the call details page loads, it fetches the call details collection using the call ID passed into it.
Mapping this to what you appear to be tackling, I’d imagine the lessons details page to be a template that received an ID that is passed in when you click on a lesson list item, eg Conversion of Energy. To do this you’d need to pass the ID to the list item, along with the title that you already appear to be passing in.
Hope something in here helps.
Hi @Luke,
It looks like your formula is not returning an id. You should have something like this in the current value:
Could you try and tell us if that works for you?
I have that for the ones in the Context “Pages” folder but I am trying to find that ID dynamically based off the collection of Course cards that you can see in the image. Does that make sense?
Are you using the Dynamic Collection Page? Dynamic collection pages | WeWeb Documentation