2

I have app-hook for my Django CMS 3.0.3 and looking for right solution to set meta title to my app-hook pages.

Now I'm doing it like so: in my base template:

{% load cms_tags sekizai_tags menu_tags staticfiles %}
<html>
<head>
    {% block head %}
        <title>{% page_attribute 'page_title' %}</title>
        <meta name="description" content="{% page_attribute 'meta_description' %}">
    {% endblock head %}
    ...

In my app-hook templates I overrided this block head like so:

{% block head %}
    <title>{{ title }}</title>
{% endblock head %}

Is it a right solution? Maybe I should somehow change attribute page_title in my app-hook's views?

Antonio
  • 822
  • 1
  • 10
  • 19

1 Answers1

2

You can find the answer there : Django CMS Page Title Doesn't Render

It looks like you did quite the same, so I guess it is the best solution

Community
  • 1
  • 1
chocobn69
  • 175
  • 1
  • 7