Automatic page title

Permalink 3 users found helpful
This might have an easy answer, but I have not found it yet.

If I want the title of the active page showing somewhere on the page (like right above the main content area), how can i insert this? Is there some heading block or other way of including this in the default blocks of the page types so I don't have to write the title of the page manually at the top of a Content block on every page?

henit
View Replies: View Best Answer
Job replied on at Permalink Reply
Job
You could edit it into the theme's code itself - alternatively I did write a block for this (as I was in a similar position).

I can dig it out if you'd like and then use it on the Page Defaults page.
henit replied on at Permalink Reply
henit
I would prefer to have it as a block, since there might be pages where I don't want the title to appear. Mabye a good idea to include this kind of block as a standard block in Concrete5?

If you have a premade block, that would be great. Thanks!
adajad replied on at Permalink Best Answer Reply 1 Attachment
adajad
I have a block for you.

Just upload the unzipped content to 'root/blocks' and install from 'yourdomain.com/index.php/dashboard/blocks/types/install/.

Edit: If you don't want the page title to be in a h1 tag, then just open up 'root/blocks/page_name_heading/view.php' and change it to something else.
henit replied on at Permalink Reply
henit
Thanks!
nkennel replied on at Permalink Reply 1 Attachment
nkennel
Thanks a lot adajad!

Check out the attachment. I just quickly added H2 and H3 custom templates and class="page-name-heading" to the headings, so the style can be manipulated a little more easily. works for me!
JohntheFish replied on at Permalink Reply
JohntheFish