"default settings" override node specific settings
epimeth - February 27, 2009 - 22:49
| Project: | Page Title |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Description
in the "default settings" page /admin/content/page_title
I place a value in the field for "Pattern for Page".
I then go to any node of type "Page" and see the title I entered - great!
Then I edit one of the nodes and in the "Page title:" field I enter some other text.
I go to view the page and the title remains the same as the one I entered in "default settings - pattern for Page".
Only when I remove what I entered in "Pattern for Page" does the text I entered in "Page title" appear.

#1
What did you put in the Pattern For Page? Did it contain [page-title] or [title]?
#2
I'm not sure if this is a bug or by design, but the behavior I expect here would be for page titles set at the individual node level to override the defaults set in the admin settings. Currently this does not happen if there is a default set for a particular node type. The issue occurs in the page_title_page_get_title() function. The attached patch against 6.x-2.x-dev is an attempt to fix this.
Note: This patch is only for the "node" scope within the aforementioned function as I do not have occasion to test the other scopes at the moment. I assume patching the other scopes would be as trivial as this patch. I can look into this when I have time but that won't be for at least a couple of weeks.
#3
There are two parts to Page Title.
[page-title]token if you want the ability to override. This is a special token provided by the Page Title module which will use the value of the Page Title field (if specified) but fall back to just the object title if no overriding value is available.I hope this provides some clarity.