3de68ad434
- This tool is only available for admins - Before using this tool the hosting admin will need to have NPM installed and be able to run grunt - To create the docs pages for the library run "grunt componentlibrary" - After the pages are created the Library is available in Site adminstration > Development > UI Component Library
1.1 KiB
1.1 KiB
layout, title, date, draft, weight
| layout | title | date | draft | weight |
|---|---|---|---|---|
| docs | Adding images | 2020-02-04T09:40:32+01:00 | false | 2 |
Images
Images that need to be show in the component library should be placed in a separate folder for each new page.
The Markdown file for this page is located here:
└── content
└── moodle
└── getting-started
└── adding-images.md
To access images for this page create a new folder here.
└── static
└── moodle
└── getting-started
└── adding-images
Place your images in this new folder:
└── static
└── moodle
└── getting-started
└── adding-images
├── wildebeest-1200.jpg
├── kitten1.png
└── kitten2.png
To use images use this syntax:
Syntax for markdown (.md) files:
{{</* image "wildebeest-1200.jpg" "Image of a Wildebeest" */>}}
Rendered result on this page:
{{< image "wildebeest-1200.jpg" "Image of a Wildebeest">}}