Hello, I’ve been struggling with the following and wonder if anyone can help me please:
I have a directory page with a repeater which shows a picture and a couple of fields of info (such as name etc.) for each individual in a repeater (information is pulled from a database collection). I’m trying to link the button in the repeater so that the user can click into it and be taken to a dynamic page which shows all the individuals information, like a profile page. I can’t seem to do this successfully, as when I try and link the button to the dynamic page it asks me to pick a specific item.
So by using this method despite whatever individuals I pick in the repeater it always shows the same profile in the dynamic page instead of the specific users information from repeater. I can’t seem to figure out any sort of work around and from perusing past posts can’t find a resolution either. Would appreciate some help with this.
Thank Heath for your comment. I’ve checked and rechecked repeatedly and although I have a dynamic dataset connected to exactly the same database collection as the directory page I’m trying to link from, it is frustratingly not giving me any dynamic page options when trying to connect the button on the directory page. I’ve even tried to add a non dynamic dataset on the dynamic page for the same collection just to cover all bases and that also did not work. Any other suggestions?
I appreciate you taking the time to try and help me here.
I’m case anyone else is as stuck as I was with this problem this is how I got it resolved:
I realised by looking at another database collection I had - which I had intended tried to connect a dynamic page but decided to display all the information on the one page with collapsing elements instead - that there should have been a field in the database with the dynamic page and the URL items in brackets, this field is highlighted in a darker grey.
For some unknown reason this was not on my Directory database which I have been trying to connect, despite the fact I had a dynamic page set up with the correct database. I ended up removing the dynamic connections (by clicking the cog wheel “settings button” next to the dynamic page on under the Site Structure menu) and then after the page turned into a normal page, I again changed it into a Dynamic page and needed to change the URL into something that was different from what it had been set to before as it kept saying I couldn’t use a previous URL. After I did this I could then go back to my Directory page, click the connect to data button, and for ‘Click action connects to’ option the Dynamic page finally showed up.
Not sure why it didn’t work at first but happy to get it sorted. Just need to reconnect all the elements in my Dynamic page to the data again.
I have a dynamic page linked to a button in a repeater. It displays the information according to an entry in my database.
I wrote a code for hiding the button in case “the campaign” is no longer available by linking it to a boolean value in my dataset.
The problem is: everything works fine on the preview mode but when i publish the site, the button stops working.
import wixData from ‘wix-data’; import wixLocation from ‘wix-location’; import wixWindow from ‘wix-window’;