While we are finalizing our previous WWC (Wappler Weekly Challenge) and @psweb is finalizing his great showcase as clear winner , we have another challenge for you
Wappler Community as API
The Wappler Community itself can be used as a great API Data Source!
Just add .json to any link and you will get the JSON response back!
Make Best Wappler Docs UI
This is particularly useful when accessing the Wappler Docs category:
GEORGE!!! How can you do this too me, Holiday in 4 days, deadlines before then and you set such an exciting and fabulous challenge.
Have you any idea how much it will hurt not to be able to do this one!!!
May have to submit an entry a week late anyway just because i want to do it
(wonders if wife will notice a laptop in suitcase )
Trying to connect to the community.wappler.io API and I am getting the CORS Policy block?
Access to XMLHttpRequest at 'https://community.wappler.io/c/docs.json?' from origin 'https://www.learnwappler.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
EDIT: Forgot to mention I used no params to connect at all or Header params, was I meant to.
Well I had the same CORS problem when connecting to one of the geoPlugin APIโs but @geoplugin fixed that from his side, I assume Wappler will have to make an alteration on their end for this one too.
I have only really connected to the Maps API from Google and never had any issue with that though.
The discourse API can be difficult, requires a lot of requests to get all required data. So I created a sample that shows how you can nest API sources inside a repeater.
You not kidding @patrick, that discourse API was a nightmare, wish I had this when I was trying to figure the thing out, haha. Must have taken 4 hours to get the parts i wanted out of it.
You can use dmx-bind:id="โyouridโ+$index" which will increment the ID by 1 from the values in the repeat itself if that helps. Hope I understood what you meant.
Is there a way to get the dmx-bind on it without looking at the code or is that the only way?
Also, how do you suppose you collapse each section? See screenshot. In my mind, you could make each section have its own ID, and toggle based on that. Any thoughts @psweb
To get what you have means that you must have a repeat region. Inside that you have another repeat so a nested repeat. You can add a variable that gets set on click and add it inside the first repeat which means that it will have as many variables as their are in the category repeat.
I started working on this challenge but unfortunately got too busy with normal work.
If you want to look at that in the meanwhile to look at the code see. https://www.learnwappler.com/playing.php
Sorry wrong link I fixed it. Open the file manager to see the listing like you might want.