Hi, I have some experience with corvid, but, I searched around and couldn’t find a solution for this:
I have a live site, a working collection (database) that I use on my site.
This is what I need:
My client updates his wix site on a regular basis. He knows how to do the basic editing tasks on the regular editor (without opening dev mode).
I want him to have an option to load a lightbox ON THIS CURRENT PAGE and pass an id value to that lightbox.
That lightbox has it’s own code to pull data from the collection and display it.
It works great when I link to A DIFFERENT page and use a query:
xxxxxx ? id=1008
But I want to be able to trigger that light box from this same page.
If I use the regular text link to the lightbox in the editor, I cannot send any value to that lightbox (I can do that only by code, not by the “regular” editor)
Then I thought of 2 solutions:
-
to write a function that captures a click event on a button I’ll leave on the page. Change the button label to the id of the requested query (he can do that). and make the button invisible. The problem is, I can’t make the text/label of the button transparent, so it will show 2356 (the id) instead of being invisible and set above a “read more” text.
** not a good solution -
SO HOW DO I set a link in the editor that triggers a function in the same page I am on, right now, without reloading the page?
Maybe something like:
Writing the text “read more” in a paragraph >linking the text to an external address>
but instead of getting an external address, running a function that opens the lightbox and passes the id value.
something like this:
#<"run-this-function", id=2356>
Is that even possible? or does anyone have a different solution
Thanks