By sraborg on
The title pretty much sums it up. I've figured out how to edit an existing node in a modal frame, but I haven't been able to figure out how to create new content in one.
The title pretty much sums it up. I've figured out how to edit an existing node in a modal frame, but I haven't been able to figure out how to create new content in one.
Comments
Have you checked into CTools
Have you checked into CTools AutoModal?
Thank you for the reply;
Thank you for the reply; however, I'm wanting to learn a little more about what goes on "under the hood" other than just install another module.
Nevertheless, I've made some progress by creating a custom module and including the following code:
Everything is working for the most part except all the nodes created this way show they are authored by anonymous users. Can someone give me a pointer on what to fix here?
P.S. The node types that I'm creating have an entity reference field prepopulated with this code (which is working fine). I wanted to explain that so I don't cause any confusion on that bit.