This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Primary syntax | |
| $this->EE->channel_data->get_channel_entries($channel_id = 1, array( | |
| 'where' => array( | |
| 'channel_titles.entry_id !=' => array( | |
| 1, | |
| 2, | |
| 3, | |
| 4 | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {exp:channel:entries | |
| channel="producers" | |
| disable="member_data|categories|category_fields|pagination" | |
| dynamic="no" | |
| url_title="{segment_3}" | |
| } | |
| {exp:stash:set no_results_prefix="nested_"} | |
| {stash:page_title}{title}{/stash:page_title} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /(((.|\n)*)[\/$])|(\.(.|\n)*)/g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $channels = $this->EE->channel_data->get_channels(array( | |
| 'where' => array( | |
| 'site_id' => 1 | |
| ) | |
| )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function author_id() | |
| { | |
| $params = array( | |
| 'username', | |
| 'screen_name', | |
| 'email' | |
| ); | |
| $where = array(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Add this to your module tag | |
| if($no_results_prefix = $this->EE->TMPL->fetch_param('no_results_prefix')) | |
| { | |
| if(preg_match('/\\'.LD.'if '.$no_results_prefix.'no_results\\'.RD.'.*\\'.LD.'\\/if\\'.RD.'/us', $this->EE->TMPL->tagdata, $matches)) | |
| { | |
| $this->EE->TMPL->no_results = $this->EE->TMPL->parse_variables_row($matches[0], array( | |
| $no_results_prefix.'no_results' => 1 | |
| )); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Using just an extension... | |
| {exp:channel:entries | |
| channel="events" | |
| showtimes="yes" | |
| } | |
| {title} | |
| {/exp:channel:entries} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $entry = array( | |
| 'title' => $this->post('title'), | |
| 'status' => 'Unpaid', | |
| 'allow_comments' => 'y', | |
| 'entry_description' => $this->post('entry_description'), | |
| 'entry_client_name' => $this->post('entry_client_name'), | |
| 'entry_delivery_method' => $this->post('entry_delivery_method'), | |
| 'entry_url' => $this->post('entry_url'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $channel_fields = $this->EE->channel_data->get_channel_fields($channel_id = 1)->result(); | |
| $channel_fields = $this->EE->channel_data->utility->reindex($channel_fields, 'field_name'); | |
| $channel_fields['your_field_name']->field_id; // Would out put the field's id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $var = array( | |
| array( | |
| 'name' => 'Some Name 1', | |
| 'value' => 'Some Value 1' | |
| ), | |
| array( | |
| 'name' => 'Some Name 2', | |
| 'value' => 'Some Value 2' |