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.

CommentFileSizeAuthor
auto_node.patch701 bytesAlice Heaton

Comments

bengtan’s picture

Status: Needs review » Closed (won't fix)

Hi,

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.