EllisLab text mark
Advanced Search
     
NEED SIMPLE ANSWER ON CHANNEL ENTRIES
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"}
{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.

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

 Signature 

Chris
The Man With A Peg

 
Posted: 12 March 2012 10:12 AM   [ # 2 ]   [ Rating: 0 ]
Joined: 2009-02-20
192 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/

 
Posted: 13 March 2012 09:18 PM   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2008-06-15
448 posts

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

Try the Channel Entries API as a starting point.

 Signature 

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