Built-in Template Tags¶
Render Pagelet¶
{% render_pagelet pagelet %}
This takes in either the slug of a pagelet or the pagelet object itself, then outputs the content of the pagelet along with some divs to wrap the content, and adds the administration links when a logged in user has permission to edit.
Create Page¶
{% create_page "Link Text" %}
Uses the first argument to create the text in the link and builds a simple link to create a new page based on the current URL.
This is meant to be used on 404s.
Render Content Area¶
{% render_content_area 'content_area_name' %}
This is used to create content areas on the PAGELET_BASE_TEMPLATES. For more information see, Custom base templates and content areas
Pagelink Ifexists¶
{% pagelink_ifexists pagelet %}
Creates a link to the input pagelet (or pagelet with slug) if it exists; otherwise, it renders nothing.