ExpressionEngine CMS
Open, Free, Amazing

Thread

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

The active forums are here.

NEED SIMPLE ANSWER ON CHANNEL ENTRIES

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"}
    {title}
    {Body}
    {/exp:channel:entries}

    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

    danieljohnbarnes

    151 posts

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

    http://ellislab.com/forums/viewforum/116/

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

    vosSavant's avatar

    vosSavant

    380 posts

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

    Try the Channel Entries API as a starting point.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases