HOSTED SPACES
Custom Landing Page
Doc tree - custom landing page
1 min
on a custom landing page, you can build your own doc tree(left navigation) on the `window` object of the browser, there is the window archbee custom object which contains console log(window archbee custom) / { showsearch () => void hidesearch () => void navigationtree publicdoctree\[] } / showsearch > opens search modal hidesearch > closes search modal navigationtree property that holds a list of all your space documents with associated data to build your left navigation tree you need to retrieve the navigationtree from the window archbee custom object, iterate through its structure, and dynamically generate navigable html elements that maintain the correct order and hierarchy js script to be used in your landing page code to display the object \<script> addeventlistener("load", (event) => { console log('init', window archbee custom); }); \</script>