Hi and thank you in advance to anyone who is kind enough to help a newbie coder. I have modified a code I found to connect a database with individual lightboxes and after a little tweaking it is working great, yay! …but
The issue I am having is that the code is affecting the sort setting I have setup with the database which is a simple A-Z sort when displaying the database. When the live page loads it most often flips the database sort from A-Z to Z-A when it is displayed live. Sometimes it doesn’t but most often it does. For reference, at the moment it should begin with the name Heather Burton.
Below is a link to the live site page I am working on along with the code I am using.
Hi J.D. and thank you! As mentioned above i am a total newbie coder (but an experienced WIX user) and found this code on the forum:
The reason I am using code to achieve this functionality on the page is that when you use repeaters connected to a database it does not allow for connection to individual lightboxes (and lightboxes can not act as dynamic pages). For this reason I moved to coding it. So I believe that is why the code is running a direct query (for the Agents) collection. I hope that is clear and makes sense. (For reference each real estate agent will have there own light box that functions in this way.)
@hello431 You don’t need both of them (it’s just doing everything twice).
You should decide what you prefer - dateset (you can use dataset with code as well) or direct query.
DATASET OPTION CODE:
@jonatandor35 Thank you J.D., that solved the issue! I appreciate you providing code for both options. It is now function correctly. Cheers to you my friend
Hello, I’m new to coding, and I’m trying to do the same thing here. I’m not sure which parts of the code reference your personal datasets and lightboxes and which are just pure code. Also, do you just post this on the page with the repeater or do you need to put it in the lightbox and the repeater pages? Using the dataset system