Making your own custom display templates for Docly schemas. This is example shows how you make the "Documentation" schema display in your own site with your bounding frame / design template.
Breadcrumb example
Example on how to show current navigation path for a page.
Sending forms by e-mail
Use this documentation to setup page templates that submit forms by e-mail and add custom backend validation such as Google reCAPTCHA.
Linking images and files in hash
How to link files and images from #JS code.
Menu with active class (hash)
Using published folder search
This search function searches all the documents in a published folder and sub folders. ATM only filenames are searched.
Prevent Docly changing HREF and SRC
Docly automatically reroutes any reference going to / over to the site folder.
How to make JS and CSS bundles
Get higher ranked with fewer JS and CSS files. In other words, this means that you should always bundle all JS and CSS files to one JS-file and one CSS-file.
Redirect to a page or site
The redirect command - and how to make a redirect site.
Example of dynamic sitemap.xml file
This example generates a dynamic sitemap.xml file
Setting and adding meta tags to head
Request variables and edit links - example
Examples on how to get current folder, url, site name, edit links, page title and more.
Implementing caching in an API function
This function implements caching for an API endpoint by checking the 'If-Modified-Since' header and returning a 304 status if the content has not been modified.