Hello, I think that SiteJet Builder is a great instrument while building static websites. My use case is just little different 'cause I want to use object created within a sitejet web page and reuse against a json data bean.
I wrote the js code (not wiped at any deploy using a nginx virtual mapping) and included at the bottom of the page by an html block. This code take a json data bean and creates elements of an accordion (trigger and content) cloning the one built static into the page and wiped at the end of the script.
Perhaps, I dunno, there’s something I miss because the new elements generated and placed at the right place with new element ids calculated in order to not overlap with others don’t works and integrates with the logic of the accordion itself.
The only way to add dynamic content and via an API would be our Collection feature, actually. Otherwise, there is no plan to dynamically add elements otherwise.
Nope! I have to review the “Collection feature” 'cause it’s the first time I read about. However I have developed my script which creates (cloning and appending after changing ids and accordion name into data-animation attribute) but nothing! Elements added by dynamically remain static even if there is no overlapping among them. You can see the last version here Accordion - lab.dev.pallavolo.me
Well, as I said, those dynamics are probably not realizable with the elements and if, that would exceed my / our support. So maybe the collection feature could really be a solution on the long run.
Ok, Andre. I think the issue stays into applying CSS after the document has been fully loaded. I will apply my own accordion logic lo let it play smootly! Thank you for your support.