We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How can I publish a channel entry without using the publish form? I'm trying to do this via an extension hook.

Development and Programming

Ben Parizek's avatar
Ben Parizek
128 posts
15 years ago
Ben Parizek's avatar Ben Parizek

In short, here’s what I’m trying to do: When a new user is created, a channel entry is automatically added with the same title as the name of the new user.

But what’s the best way to add a channel entry outside the publish form? Is there a way I can easily determine the MySQL INSERT INTO statement that is used to create a new entry? All I really need to add is the title and the other required entry fields, but I know EE stores this data in a couple different tables and don’t want to overlook one if I end up creating this query manually.

Thanks.

       
aircrash's avatar
aircrash
293 posts
15 years ago
aircrash's avatar aircrash

Ben,

Did you figure out a way to do this? I need to do something similar.

       
Ben Parizek's avatar
Ben Parizek
128 posts
15 years ago
Ben Parizek's avatar Ben Parizek

Not yet. Haven’t had time to sort it out. Let me know if you come up with a good answer.

       
the3mus1can's avatar
the3mus1can
426 posts
15 years ago
the3mus1can's avatar the3mus1can

For EE2 you could use this http://ellislab.com/expressionengine/user-guide/development/api/api_channel_entries.html.

       
Ben Parizek's avatar
Ben Parizek
128 posts
15 years ago
Ben Parizek's avatar Ben Parizek

Perfect. Hadn’t come across that yet. Thanks a ton.

       
chichilatte's avatar
chichilatte
43 posts
15 years ago
chichilatte's avatar chichilatte

ta from me too the3mus1can

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.