I’ve built a dynamic page which includes a slideshow element. Now I want to assign quick actions so that the user is redirected to certain slides within that slideshow.
Unfortunately I only seem to be able to link the quick action to a specific dynamic page?
See screenshot below:
Is there a way to avoid having to set a specific dynamic page?
Thank you.
Yves
You should have a look at the Wix API Reference and look at Quick Action Bar there to see if you can do this, although note that not everything will be possible like this with the overwriting of the link from the mobile app itself.
https://support.wix.com/en/article/adding-and-setting-up-the-quick-action-bar-on-your-mobile-site
https://www.wix.com/corvid/reference/$w.QuickActionBar.html
Hi @givemeawhisky . Thanks for your answer.
Well I looked into that already and from what I understand, I cannot overwrite anything with regard to the quick action toolbar?
The only thing thing that is available is:
$w("#myQuickActionBar").onItemClicked( (event) => {
let itemType = event.item.itemType; // "search"
let itemLabel = event.item.label; // "Search"
let itemLink = event.item.link; // "https://www.google.com/search?q=wix"
let imageSrc = event.itemIndex; // 3
} );
From what I understand, there is no option to set item.link, let alone set it dynamically. Or am I missing something?
I also tried to add a link through the UI: mywebsite.com is available for purchase - Sedo.com, just like you do for a dynamic page, but that wasn’t possible either.
Any other options that might help me achieve my goal?
Thanks you.
Yves
Hi @givemeawhisky I figured it out. I will do it fully custom: I’ll not assign the link and build the link myself in code based on the trigger I get from ‘event.item.label’.
Yes, the onItemClicked is the only one that is near good for you and that will only tell you what happened etc. Hence why I added in the previous post that you might not be able to do it.
As it is still a Wix app and not fully integrated with code, you will only be able to do what you can do in the editor page settings and link a dynamic page to the specific page that you choose and not let the user choose it themselves for which ever one they actually needed.
The other option here would be to not use the Quick Action Bar for this and simply move the link into the mobile menu container which you can fully customise yourself with your own code. Although this workaround would defeat the reason for having that option in the Quick Action Bar.
https://support.wix.com/en/article/customizing-your-mobile-menu-4726130
https://www.wix.com/corvid/reference/$w.MenuContainer.html
https://www.wix.com/corvid/forum/corvid-tips-and-updates/introducing-the-new-mobile-menu
https://idancohen4.wixsite.com/menu-code?showmobileview=true