Panels module v3.3
Ctools module v1.3
I am using panels for "Node add/edit form"
And for title/breadcrumb: "%node:content-type: %node:title"
When submitting the node I get:
Notice: Undefined property: stdClass::$title in node_tokens() (line 133 of /var/www/projectname/modules/node/node.tokens.inc).
Tried using node-edit context, but this creates other problems - multiple calls to node_edit_form(), alter hooks, etc.
I'm attaching the patch I used to fix my problem - adding the title to the context for new node.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | ctools_node_context-add_title-2059543_7.patch | 461 bytes | dhruveshdtripathi |
| ctools_node_context-add_title.patch | 463 bytes | miroslavbanov |
Comments
Comment #1
damienmckennaComment #3
mpark commentedWhy this patch is not applied to the standard version of module?
Comment #4
rivimeyPatch applies to current 7.x-1.x-dev branch. Seems fine to me.
Comment #5
japerryHmm I think this needs to be '' instead of NULL.
Comment #6
damienmckennaThis didn't get into 1.13, maybe it will get into 1.14.
We need to try getting this to RTBC.
Comment #7
dhruveshdtripathi commentedAgreed with change suggested by @japerry in comment #5. Made the change in attached patch.
Comment #8
damienmckennaComment #9
japerryDrupal 7 is no longer supported, closing.