This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.


March 09, 2012 1:15pm

Subscribe [3]
  • #1 / Mar 09, 2012 1:15pm

    J Walker

    1 posts

    I know you can
    {exp:channel:entries channel="THE CHANNEL NAME" limit="10"}

    but how do I
    use the channel Class in my custom module to retrieve entries and etc

    something like this
    $this>EE->channel->get_entries(CHANNEL ID);
    get returned an array of entries.

  • #2 / Mar 10, 2012 2:16pm

    Man With A Peg's avatar

    Man With A Peg

    124 posts

    This probably isn’t what you are looking for but I always drop to SQL queries:

    SELECT ct.*, cd.* FROM exp_channel_titles ct LEFT JOIN exp_channel_data cd ON (cd.entry_id = ct.entry_id) WHERE ct.channel_id = ###.

    But then I have not yet figured out the OO method for this. If someone else does know, I’m curious.

  • #3 / Mar 12, 2012 10:12am


    151 posts

    You’ll probably be better off posting this in the dedicated forum, rather than the forum specifically for non-expression engine queries:

  • #4 / Mar 13, 2012 9:18pm

    vosSavant's avatar


    380 posts

    Although this isn’t the right forum for this question…

    Try the Channel Entries API as a starting point.

ExpressionEngine News

#eecms, #events, #releases