Hello!
I have a dynamic page and want to add a headline on each page, which I connect to the dataset, so it changes on every page. Additionally I wish that the headline works as a link, which is also dynamic and should be connected to an URL-field in my data collection.
However, I can choose only one data connection. Is there a way, I connect the headline-text field to both dataset fields, so the headline text changes but also the page it links to?
Thanks!
Same here. Anyone managed to add a link to a dynamic item heading? Seems normal to want to link from item heading as well as the button and item image (which is possible).
Any help here will be very welcome.
Thanks!
You could make use of the dataset API to getCurrentItem(), which will grant you access to the dataset item loaded on the page and consequently, your entire row of data.
From there you could then do something like a $w(“#headingId”).onClick(()=> wixLocationFrontend.to(currItem.url))
2 Likes