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?
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?
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!
If you have a premade block, that would be great. Thanks!
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.
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.
Thanks!
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!
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!
I can dig it out if you'd like and then use it on the Page Defaults page.