python - Feincms ApplicationContent overwrite context -
if add applicationcontent
region on feincms page, how update feincms_page's
context?
use case
changing feincms_page's title application content's title
use fragment
templatetag
app template:
{% fragment request "frag_title" %} title {% endfragment %}
inherited template:
{% if request|has_fragment:"frag_title" %} <title>{% get_fragment request "frag_title" %}</title> {% else %} <title>{{ feincms_page.title }}</title> {% endif %}