Forums | Mahara Themes

General discussion /
Adding page title to theme body


anonymous profile picture
Account deleted
Posts: 8

17 October 2011, 6:53

Hi everyone. It's my first time posting here and this is *hopefully* an easy one. I'm working on a number of themes which have been visually designed by our students for a competition. One of the submissions has the page title displayed above the description but below the header (we use microheaders), and is styled to match the content blocks. I have tried in vain to add the title to view.tpl. Here are some of my failed attempts:

  1. {$microheadertitle|safe} - works but includes "by [user]", which I'd like to avoid.
  2. {$view>title} - as used in collectionnav.tpl - no good.
  3. {$PAGEHEADING} - as used in header.tpl - nothing.
  4. {$maintitle|safe} - nothing.

All of the above have been tested, and I've made sure to check my surrounding html is correct.

Can anyone put me out of my misery? Many thanks in advance. Steve

anonymous profile picture
Account deleted
Posts: 17

17 October 2011, 8:00

Hi Steve,

sounds like you're working on an interesting project.

A quick var_dump of the available smarty variables shows that two you might want to look at are:

{$PAGETITLE} and

{$heading}

anonymous profile picture
Account deleted
Posts: 8

17 October 2011, 8:13

Thanks Richard, it was the latter. I know nothing of smarty, so I've just been trying variables found in other template files (and several made up ones, so I should have stumbled upon it myself sooner). And thanks for such a fast response. Steve

3 results