1

I have a customer requirement where they're asking that EE automatically generate a blog post when a post in another channel is created (e.g., we post a product and there's a blog post about it).

Aside from doing it in some funky way where I combine the channel but separate out the posts via category, I can't think of a really streamlined way to do it.

I'm guessing it could be done using ACT or something, but I'm not sure the best way to approach this. Any tips to get me headed in the right direction would be helpful!

1 Answer 1

2

Sure - use an extension which fires on the entry_submission_end hook.

Check that $meta['channel_id'] matches your Product channel, then take the data from $meta and $data to create a new entry (just an array of data) for your Blog channel.

Lastly, pass that array to the Channel Entries API and you should be good.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.