First page with it's own title

sognus - March 4, 2009 - 13:31
Project:Pagination (Node)
Version:6.x-1.5
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

I'd like to have a real title for the first page of the content table, maybe by starting the article with a h3 tag. How can it be done?
Thanks

#1

mundanity - March 6, 2009 - 07:35

Hi there,

Right now this is not possible. If I can come up with an easy method to handle that I'll add it, but to be honest, unless a lot of people are really after this feature, it's probably going to be low priority.

#2

mundanity - March 18, 2009 - 03:38
Status:active» postponed

#3

helderluis - September 13, 2009 - 13:36

Can you tell us where in the code can we change that? Because all i want is to give it a single name, like "overview" instead of the page title. This would show on all the pages with the table of contents.

#4

mundanity - September 13, 2009 - 21:31

Hi there,

If you want to replace the first page title with the same string for all paginated nodes, you can change line 622 (assuming you're using the latest dev release), within the method call getToc():

// From:
    $headers[0] = menu_get_active_title();

// To:
    $headers[0] = 'Overview';

#5

helderluis - September 14, 2009 - 10:33

Thank you very much, great help. Cheers

 
 

Drupal is a registered trademark of Dries Buytaert.