Programming

Stuff related to programming Docly sites and schemas.

Spe­cifi­ca­tion of Doc­ly™ DOCX Temp­late Fra­mewor­k
Docly™ developed framework to use Microsoft Office Word (2010 or above) files as templates to merging data and output DOCX and/or PDF files. (C) 2014 - 2023 Docly™ | www.docly.net
The co­de (#) fol­der
Used to put templates for how your Docly site should display your content.
Pub­lis­hin­g a fol­der in Doc­ly
Publish a folder to create websites from your Docly content. Make them available for the public or for invited people only.
The hash fol­der
Your published folders can contain a folder called #. This will contain all definitions used to generate your site. Using this folder you can customize the way your website looks and works.
Set­ting up and using a Mas­ter Pa­ge
Master pages are used with docly's MASTER ERROR, FILE NOT FOUND (master file ) directive.
Co­de examp­le list fi­les in fol­der
Listing files in current folder
Set­ting up de­fault fi­les
Default files are available in the root or any subfolder, they can always be overridden if desired. When the file is no present in the root or a sub folder the default file with act as it was in the folder. The default files are used to make "Publish templates" and/or to keep the code away from the content files.
Se­tup cus­tom 404 er­ror pa­ge
How to make your own template for showing "page not found" in your published folders.
Using the inc­lude di­rec­tive
Use the INCLUDE ERROR, FILE NOT FOUND: include ... directive to include other files into your page. Includes run before scripts in your page.
Crea­te lan­gua­ge fi­les in temp­late­s
In order to translate or customize texts in a publishing template for a folder you can use the following approach.
Ge­nera­te a Ro­bots.t­xt fi­le
Read how to dynamically generate a robots.txt file of your site.
How to se­tup Goog­le re­CAPTC­HA
Follow this guide to create a Google reCATPCHA token (human validation) in Docly™.