2
0

download.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Download Block
  2. ==============
  3. The download block enables users to add documents to the CMS which website
  4. visitors can download from the site. The download block is a button and has the same options.
  5. Example: See Button Block.
  6. Field Reference
  7. ---------------
  8. * **Button Title** - The text to show on the button. You can insert simple HTML
  9. here as well, such as ``Learn <b>More</b>``.
  10. * **Button Style** - The appearance of the button. This is a choice loaded from
  11. ``CRX_FRONTEND_BTN_STYLE_CHOICES`` Django setting and is inserted as a
  12. CSS class in the HTML.
  13. * **Button Size** - The size of button. This is a choice loaded from
  14. ``CRX_FRONTEND_BTN_SIZE_CHOICES`` Django setting and is inserted as a CSS
  15. class in the HTML.
  16. * **Document Link** - Link to the document, which you will need to upload into the CMS
  17. * **Advanced Settings** - Add custom CSS classes or a CSS ID
  18. .. figure:: images/download_block_editor.jpeg
  19. :alt: A download block and its settings.
  20. A download block and its settings.
  21. .. figure:: images/document_selection_modal.jpeg
  22. :alt: The document selection modal
  23. The modal to search current or upload new documents for users to download.
  24. When a website visitor clicks the button, the document is available for download in a new window.