Is there a built in way to get channel entry details other than ‘entry_id’ ?
channel_entries_model has a ‘get_entry’ method but only takes entry_id as the option.
what if, like how i need it now, I need to get details based on the ‘title’ from channel_titles table.
is there a method for that or do I need to create one on my own?
thanks,
I’d use something like this… Though if there is a better way I’m all ears my self.
$this->EE->db->where('title', $title);
$this->EE->db->where_in('site_id', $site_ids);
$this->EE->db->where_in('channel_id', $channel_ids);
$query = $this->EE->db->get('channel_titles');
if ($query->num_rows() > 0){
$entries = $query->result_array();
...
}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.