Create a custom page for various intentions such as an About page, Privacy Policy or re-usable <iframe>, where you don't want to use an article (postpage) or section (subpage) template.
Steps:
- Make sure that simple_pages_folder is set in engine_settings. Leaving it empty will be the best:
'simple_pages_folder': '',
You don't have access to engine_settings with external beta. Please ask support team to add it there. - Check that templates/community/roar/base_staticpage.html exists. If not, create it and add the following line:
{% extends "community/roar/base_frontpage.html" %}
- Create a simple_pages/ folder inside engine/ (for External Beta) or engine/templates (for Internal Beta)
- In /engine/simple_pages/ create a new simple page file you-name-it.html
- Add some valid HTML content into the file and you are ready to go!
URL to simple page:
Your simple page is accessible via multiple URLs:
- http://example.com/sp/you-name-it.html
- http://example.com/sp/you-name-it/
- http://example.com/section/you-name-it.html
- http://example.com/section/you-name-it/
Advanced users
If you have experience using Jinja, you can make use of its features, such as extends, block, include, etc.
Extends - useful when you have a default layout for multiple simple pages.
{% extends "simple_pages/default-layout.html" %}
Block - used for overwriting blocks which are defined in default-layout.html.
{% block title %}About Us{% endblock %}
Include - used for including different modules so you don't repeat your code.
{% include "community/roar/includes/ROAR_NAME/common-module.html" %}