|
I am currently modifying the default template and I am stuck at the following. I am trying to make the tabBar class to display on every page, changing its title accordingly. The code for that class is: {% include "question_list/title.html" %} {{ questions.paginator.sort_tabs }} So the problem I am experiencing is that the title of the tabBar does not change to the question's title on the question page. Let's say I have a question titled "Template modification". I need the tabBar to change its title to "Template modification". To do that I thought I needed to edit the "question_list/title.html" file. The code there is:
So I took the following string from question.html:
and added the following lines in "question_list/title.html": {% if question.headline %}
{% trans "All Questions" %}
I'm afraid however that the above did not work. The script started outputting errors. I believe that the page_title string should already be doing this for me, however it seems that it cannot generate the title successfully and it always displays "All Questions". Any ideas will be greatly appreciated. |
|
Never mind, I found a solution :) Thanks. |