User Tools

Site Tools


leon:documents-manager

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
leon:documents-manager [2019/09/12 09:10]
bartek [Adding aircraft pictures to documents]
leon:documents-manager [2020/01/31 10:36]
bartek [Attaching extra pages to documents]
Line 134: Line 134:
 ---- ----
  
-==== HTML structure ====+===== Attaching extra pages to documents ===== 
 + 
 +It is possible to attach **extra pdfs** to existing documents in Leon. If, for example, Flight Order needs to have attached an extra page for pilots with towing instructions, you can attach it by uploading pdf file into Documents Manager panel (edit the document and use right-hand filter, tab FILES) and by adding below HTML code at the bottom of the 'BODY' HTML code: 
 + 
 +{% pdf "towing_instructions.pdf" %}  
 + 
 +where 'towing_instructions' is the name of the pdf document. 
 + 
 +---- 
 + 
 +===== Showing a map in documents ===== 
 + 
 +[{{ :leon:documents-manager:map on docs.png?150|Showing a map in documents}}] 
 + 
 +It is also possible to **show a map** in particular documents.  In order to do that you need to insert the below code: 
 + 
 +{{:leon:documents-manager:map code.png|}} 
 + 
 +You can define **width** and **height** as you wish, as well as the** colour of lines** on the map (see screenshot). 
 + 
 +---- 
 + 
 +===== HTML structure =====
  
 **HTML** is a markup language that allows defining structure of web pages. Pages written in HTML can be further styled by CSS. In Documents manager user only writes HTML placed inside <body> tags. HTML headers are added automatically outside of the editor. Be aware that header, body and footer are treated as separated HTML documents but they share single CSS file. **HTML** is a markup language that allows defining structure of web pages. Pages written in HTML can be further styled by CSS. In Documents manager user only writes HTML placed inside <body> tags. HTML headers are added automatically outside of the editor. Be aware that header, body and footer are treated as separated HTML documents but they share single CSS file.
Line 161: Line 183:
 ---- ----
  
-==== CSS structure ====+===== CSS structure =====
  
 CSS is used to add **style** to document's structure. CSS capabilities can be compared to advanced text editor. For example, user can change: elements of the **font**, **font size**, **colour** of the text or the **background**, can add **margins**, **padding** and **borders**, can align **content**. There are a lot more CSS options to apply to a document's elements.  CSS is used to add **style** to document's structure. CSS capabilities can be compared to advanced text editor. For example, user can change: elements of the **font**, **font size**, **colour** of the text or the **background**, can add **margins**, **padding** and **borders**, can align **content**. There are a lot more CSS options to apply to a document's elements. 
Line 181: Line 203:
 ---- ----
  
-==== Using Twig ====+===== Using Twig =====
  
 **Twig** is a template engine that can insert **dynamic data** from LEON into document’s HTML structure. Before using Twig you should familiarize yourself with data structure of a document you are customizing.  **Twig** is a template engine that can insert **dynamic data** from LEON into document’s HTML structure. Before using Twig you should familiarize yourself with data structure of a document you are customizing. 
leon/documents-manager.txt · Last modified: 2023/11/15 11:53 by marek