The issue #1860484: Add support for Title module field adds support for the Title module, but the integration does not handle a little incompatibility between those 2 modules.
The Title field module uses hook_field_extra_fields_alter() to remove the title extra field when the replacement is enabled.
But in the same time, the Fieldable Panels Pane module uses hook_field_extra_fields_display_alter() to set the visibility of this extra field to FALSE. But at this time, the entry does not exists anymore, so that causes an error when rendering the extra field in _field_extra_fields_pre_render() :
Notice: Undefined index: weight in _field_extra_fields_pre_render() (line 716 of /home/capkopper/www/capkopper/drupal/modules/field/field.module).
There are several ways to fix that, but the simplest seems to be a basic test before modifying the visibility...
Comments
Comment #1
b-prod commentedAdds a basic check.
Comment #2
suldan commentedThanks!
Applied patch #1 to 7.x-1.6-beta1+2-dev. Works for me - error message is gone.
But the the title is displayed in full view mode when it shouldn't !
Comment #3
b-prod commentedThis patch takes care of some missing points for Title integration, that may cause the title to be displayed.
If you are using the Title module, do not forget to update the field display so the title replacement field is not shown on the "full" view mode.
Comment #4
b-prod commented@suldan could you tell me if this fixes your problem. If not, I would need some more details to replicate your issue...
Comment #5
suldan commented@B-Prod
Applied latest patch (#3) with same effect as in #2. The field is hidden in the 'full' display, but I found the option to hide the FPP title in the field settings (under label replacement). It did the trick. I don't know if 'Hide page title' is a good label for this option, maybe something like: 'I want panels to display the FPP title'.
Anyway, thanks a lot for your effort. Problem solved for me.
suldan
Comment #6
b-prod commented@suldan the options you are speaking about are provided by the Title module.
Set as RTBC regarding to #5
Comment #8
damienmckennaCommitted. Thanks.
Comment #10
drclaw commentedThis patch strangely never actually made it into the dev release from April 8. So, if you're using that particular development release, you'll still need to apply this patch (until the next release is rolled out in which case you can ignore this message).
Thanks! And thank you to all who helped solve this issue!
drclaw
Comment #11
damienmckenna@drclaw: The commit is in git but yeah, for some reason the -dev snapshot does not include it.