Hi,
Can you help me solve and understand the basic code functionality to link a button to anchors or quick action bar on my site?
About:
I created a dynamic page here at https://www.feastbot.com/restaurants/babbabagel and setup a domain babbasbagel.com that redirects to this specific dynamic page URL, but I can’t figure out how to setup a menu (desktop), to link to anchors, or quick action links (mobile), to link to specific sections of the page.
Just a simple code example would help me. I tried everything by using Velo code and all but I can’t get past it (maybe i’m lacking the basic fundamentals of how that would work). If you showed me a code example I would likely be able to tweak it.
Thanks.
Ask yourself - - > what exactly is a - - > DYNAMIC-PAGE ?
You know it?
Your answer is —> it is just a data-row inside your database?
Yes, you are right!
So if it is just a data-row inside of your database, how does it work ?
At least you will have one pseudo-page (mask-page) which will have all needed control-elements, like buttons, texts, dropdowns, repeaters and so on.
This page is connected directly to your database, either by a → DATASET <–, or by → CODE <–.
If you create your dynamic page by a (dynamic-) DATASET, you will get inside of your connected DATABASE a “greyed-out” DB-Field. This data-field is a dynamic one, which should be the key to your solution.
If you do it only by code, you will have to use Wix-Data and generating some filtering-function, to get the result you are searching for (and again → out of your database) but this time directly by code.
Great information, thanks. I did know the basics, more specifically it seems like a menu nor quick action links - neither can be tied to a collection thru the editor. So I connected code for the menu items and it populates the staged editor menu with the right information. What I’m really stuck at now is the anchors. I need to be able to anchor with links since the code requires a property for a link and the anchors for the dynamic page do not show in the editor to manually set them. But nothing I do will link to an anchor on a dynamic page. I tried https://www.domain.com/page#anchor and this does not work.
I can’t see either your generated CODE, nor your dataset including your created database.
You do not provide enough informations to be able to help you.