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.
  5. Field Reference
  6. ---------------
  7. * **Button Title** - The text to show on the button. You can insert simple HTML
  8. here as well, such as ``Learn <b>More</b>``.
  9. * **Button Style** - The appearance of the button. This is a choice loaded from
  10. ``CRX_FRONTEND_BTN_STYLE_CHOICES`` Django setting and is inserted as a
  11. CSS class in the HTML.
  12. * **Button Size** - The size of button. This is a choice loaded from
  13. ``CRX_FRONTEND_BTN_SIZE_CHOICES`` Django setting and is inserted as a CSS
  14. class in the HTML.
  15. * **Auto Download** - Enables automatic download upon click of the button
  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 to style the block with your custom CSS
  18. .. figure:: img/blocks_download.png
  19. :alt: A download block and its settings.
  20. A download block and its settings.
  21. .. figure:: img/blocks_choose_doc.png
  22. :alt: Choosing the document
  23. The popup for choosing which document you want to upload to the block for download by users
  24. When a website visitor clicks the button, the document is available for download in a new window.