Hi @Greg-DB
Is there a way I could enter this into a CMS source block (using eg Webflow)?
How do I go about creating an element that the javascript will source?
Will I be able to embed multiple folders using multiple scripts?
Eg. source code:
<div class=".embed"></div>
<script>var options = {
// Shared link to Dropbox file
link: "https://www.dropbox.com/scl/fo/pyx9b32plmfkwd1et2h0t/ABZMI8Ao8r-m3EzlfbxT0QM?rlkey=2bjry6s2mwiblayinivy4tvd5&dl=0",
file: {
// Sets the zoom mode for embedded files. Defaults to 'best'.
zoom: "best" // or "fit"
},
folder: {
// Sets the view mode for embedded folders. Defaults to 'list'.
view: "grid", // or "list"
headerSize: "small" // or "normal"
}
}
Dropbox.embed(options, element);</script>
But I fear I'm not getting a part of the equation, as it's not working yet.
What I did seem to get working, is adding this to the anchor element
data-folder-view="grid"
data-folder-headerSize="small"
See my test page below
Test link
Thanks for your help!