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

writing entry_id to database (after entry is submited)

Development and Programming

kundi's avatar
kundi
23 posts
16 years ago
kundi's avatar kundi

Hello.

I’m working on a table extension that will allow me to add table custom fields to my weblogs.

I got stuck at situation where my hook function is called to write the table data in the database but at this stage the ‘entry_id’ field is empty (I would need it to write which row belongs to which weblog entry to the table data).

My function where I write data to the database is currently being called so: ‘method’=>’edit_prefs_post’, ‘hook’=>’sessions_start’, ‘settings’=>”, ‘priority’=>9

The problem is that entry_id isnt yet assigned in this stage to a weblog entry because its written in the weblog database after that.

How else or with which hook and priority can I get entry_id?

Many thanks in advance!

       

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.