Hello,
Currently default layout sets for content types are not applied if a node is created programatically (not via the node add form).
The attached patch fixes this. Let me know what you think.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| auto_node.patch | 701 bytes | Alice Heaton |
Comments
Comment #1
bengtan commentedHi,
My opinion is that if you have code that is programmatically creating nodes, the code should be populating all the necessary fields in the node, including ->composite_layout.
That would keep Composite Layout simpler, and reduce the probability of unexpected surprises later on.
However, it is a bit hard for me to second guess what's happening because I have no idea how your code is written.