Active
Project:
Page Title
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2009 at 20:13 UTC
Updated:
5 Oct 2009 at 20:13 UTC
Page_title module seems to fail placing the 'page title' field for node types coded as a module (I mean, not a cck node). I checked this problem and tracked it down to page_title_form_alter function.
Check this at line 130 of page_title.module file:
if ($form['#id'] == 'node-form') {
It seems that $form['#id'] in some node forms is not a text string, but instead an array with the next structure:
Array
(
[0] => node-form
[1] => form-[content type name]
)
So I propose to check if $form['#id'] is a text with 'node-form' as content or an array with that same string as the first value in order to add the 'Page Title' field to the form.
I hope this may help improve this useful module.