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

working with Channels (channel_data fields)

Development and Programming

Jayson Ng's avatar
Jayson Ng
67 posts
15 years ago
Jayson Ng's avatar Jayson Ng

so I have script running and it imports new channel entries to the channel_titles table.

my question is what is the best way for me to work with the custom fields associated with those specific channels? how do I associated each field_id_X and field_ft_x and field_dt_x with its proper fields? (and what do those stand for anyway?) is there a function I could use? maybe in the Channel module?

thanks!

       
Eric Barnes's avatar
Eric Barnes
487 posts
15 years ago
Eric Barnes's avatar Eric Barnes

I would probably recommend using the Channel API. Let it take care of figuring out what all those fields mean. 😊

       
Jayson Ng's avatar
Jayson Ng
67 posts
15 years ago
Jayson Ng's avatar Jayson Ng

thanks! found the api’s under library>api - so how do I load them? just the usual way?

$this->EE->load->library('api/api_channel_entries')

?

because I can’t seem to access

$this->EE->api_channel_entries

after the load…

:O

thanks again.

       
Eric Barnes's avatar
Eric Barnes
487 posts
15 years ago
Eric Barnes's avatar Eric Barnes

I believe you need:

$this->EE->api->instantiate(array('channel_entries'));
       

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.