EllisLab text mark

This is an archived forum and may no longer be relevant. The active forums are here.

Advanced Search
Posted: 09 March 2012 01:15 PM
Joined: 2011-12-07
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.

Posted: 10 March 2012 02:16 PM   [ # 1 ]
Joined: 2011-03-03
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.


The Man With A Peg

Posted: 12 March 2012 10:12 AM   [ # 2 ]
Joined: 2009-02-20
151 posts

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


Posted: 13 March 2012 09:18 PM   [ # 3 ]
Joined: 2008-06-15
380 posts

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

Try the Channel Entries API as a starting point.


RYAN BURNEY • Lead Web Developer, 3 Roads Media
Denver based web and graphic design • EE Pro Network