I want to build a fancy headline container which - you'll never guess it - contains the title of each page displayed.
In Django
you can either create a variable in every view which is passed to the layout page or define a block which is filled with content on the content page.
Its not such a nice solution copy and pasting my fancy header on every page of my application just to put my page title in. I'd prefer to put the headline container in my layout page and use my $title
variable to set the title within the container.
I found a solution for static variables here but I need a dynamic variable because the title is different for every page.
My question: Is there an easy way to pass the $title
variable which I have on every content page to my layout.phtml?
Thanks!
` tag. Because my title is more code than just
– Ron Dec 19 '12 at 10:26I'd like to put it centerally into the layout - if possible.