-
Fetch API CORS problem
How do we get around a CORS issue when building a custom widget? Is there a duda proxy? I am trying to build a test by using a dog facts api but I am running into a problem with CORS. It says "Access to fetch at 'https://dog-facts-api.herokuapp.com/api/v1/resources/dogs?number=1' from origin 'https://my.duda.co' has been…
-
search widget for real estate
I am semi professional and have disigned a few sites with Duda and I really like it. My current client is a real estate agent. He wants a portfolio with a search option where the client can opt size, location and other specifications about the desired property. Can I find a search widget in one of the templates? Or do I…
-
Adding a simple daily calender to a website
Hi all, I am looking to add a daily calendar to a website showing what specialists are available at what time for the upcoming day. Is there a widget or app that can handle this and that can be styled following the design of the website?
-
How to Setup CSS Animations with @keyframes
I'd like to setup an infinite animation which is quite simple, using only CSS - which requires us to use @keyframes. I have added an HTML Widget to my page, and then tried to go into the widget's content editor to setup my CSS animation there. I can add the css attributes I need for the animation setup, and even the…
-
How to hide a DUDA section based on the internal content of a custom widget.
We developed a custom teacher slider widget that connects dynamically to a collection. And in this component we had a case where the entire section should not exist when there are no cards/teachers. This solution was easily found with CSS, using the ":has" selector, managing to hide only the flex section of DUDA that…
-
Let's talk directories!
Hey everyone! What kind of directories do you get requests to build? Do you use Duda or do you go with other platforms? (If other platforms, why not Duda?) Or do you turn down those requests sometimes? What features are must haves that you don't have access to easily? Where do you manage your data (And would you use…
-
CSS Classes Available for Duda Responsive Framework
I am looking for the available classes that can be used in the Duda responsive framework. For example: <div class="dmRespCol column small-12 large-12 medium-12"> <div class="dmRespCol column small-8 large-8 medium-8"> </div> </div> I would like to center the "8 column" div in the "12 column" div.
-
dmAPI.dynamicPageApi().isDynamicPage() returns error that it's not a function
I copied and pasted the sample code directly from Console error: TypeError: dmAPI.dynamicPageApi(...).isDynamicPage(...).then is not a function The code in my widget // Verifies page is a dynamic page - this throws an error dmAPI.dynamicPageApi().isDynamicPage().then(api => { console.log(api); }) // Gets dynamic page data…
-
Product gallery widget clone?
I'm building a widget but would like to emulate some of the functionality of the product gallery widget. Namely how you can select products / rows and display them. How can I copy that functionality? Or else if I can get the code for the product gallery widget I can just edit it to include my additional fields. Any help…
-
Is it possible to use Partner API inside the custom Duda widget?
-
[Free Widget] Duotone Image
We have just finished a website that makes extensive use of duotone images. In order to make our job easier, we created a Duotone Image custom widget, which we'd like to offer to the amazing Duda Community. Choose an image After dropping the widget onto your page, you'll be shown the Content Editor, where you can pick an…
-
[Free Widget] Aurora
We've created a custom widget to use for the Hero Banner of our home page, which we're happy to share with the Duda Community. We called it "Aurora", because it creates an animation of morphing, blending colours that reminds us a little of an Aurora Borealis. The animation is surprisingly simple, totally CSS-based, and is…
-
How do we set initial values for a LIST in the Content Editor of a custom widget?
I'm creating a widget that will have a very simple List field in its Content Editor — each item in the list only has 1 field. By default, I'd like the widget to be initialised with 3 items on its list, and each item with a different value — i.e., when the widget is dragged onto the Editor, the list in the Content Editor…
-
How do we set the INITIAL size of a custom widget?
I've created a very simple custom widget that is made up essentially of 3 empty divs: <div class="parent"> <div class="child1"></div> <div class="child2"></div> </div> The divs won't ever have any content in them: the widget shows an animation that just uses the background images of the 3 divs — so they will always be…
-
Is there a way to edit the Connected Data footer Business hours beyond what is there?
Basically, they have some days that are "by appointment only", but the connected data widget only allows for Business hours, or All Day. And if you choose nothing for that day, the footer shows "closed". Is there a way to edit these options further? Thanks!