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
//You can create and update the Channel Entry using below Model query. | |
//For Creating the Entry :- | |
$entry = ee('Model')->make('ChannelEntry'); | |
$entry->Channel = $channel; | |
$entry->site_id = ee()->config->item('site_id'); | |
$entry->author_id = ee()->session->userdata('member_id'); | |
$entry->ip_address = ee()->session->userdata['ip_address']; | |
$entry->versioning_enabled = $channel->enable_versioning; | |
$entry->sticky = FALSE; |
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
{fluid_field} | |
{fluid_field:grid_field} | |
{content} | |
{if '{content:relationship_field:channel_short_name}' == 'channel_a'} | |
{content:relationship_field} | |
{content:relationship_field:title} | |
{content:relationship_field:custom_field_a} | |
{/content:relationship_field} | |
{if:elseif '{content:relationship_field:channel_short_name}' == 'channel_b'} | |
{content:relationship_field} |
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:http_header | |
content_disposition="attachment" | |
filename="myfile.xls" | |
content_type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | |
} | |
<table> | |
<thead> | |
<tr> | |
<th>Entry ID</th> | |
<th>Title</th> |
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
<!-- This grabs All titles based on uer and channel ID --> | |
{exp:query sql="SELECT DISTINCT title AS item FROM exp_channels WHERE channel_id = 'your_channel_id' AND author_id = '{logged_in_member_id}'"} | |
{embed="embeds/product_row" keltec_number="{item:url_slug}"} | |
{/exp:query} | |
<!-- This grabs the total entries of a Channel --> | |
<!-- this can be achieved easier with the {exp:stats} tag but it's good for practive and reference. --> | |
<!-- Just grab the Channel ID of the desired channel from the Channels Page in the Control Panel --> |
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
<!--Get the count of entries quickly on a channel--> | |
{exp:stats channel="channel_name"}{total_entries}{/exp:stats} | |
<!-- This will create an EDIT link that opens the edit window in the Control Panel for this channel entry in a new tab --> | |
<!-- Must be placed inside an EE Channel Entries tag pair --> | |
<!-- The user must be a logged in to see it.--> | |
<!-- Modify visibility by filtering by User Groups.--> | |
{if logged_in} | |
<p class="text-center"> |
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
/* Universal Styles */ | |
/* Extra small devices (portrait phones, less than 576px) */ | |
/* No media query for `xs` since this is the default in Bootstrap */ | |
/* Small devices (landscape phones, 576px and up) */ |
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
// These are the Bootstrap 4 Breakpoints per the Docs | |
// Google Fonts pre-load | |
// Extra small devices (portrait phones, less than 576px) | |
// No media query since this is the default in Bootstrap | |
// Small devices (landscape phones, 576px and up) | |
@media (min-width: 576px) { |
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
<!-- This will open the edit window in the Control Panel for this channel entry in a new tab --> | |
{if logged_in} | |
<p class="text-center" style="position:absolute;top:0;z-index: 5000;"> | |
<a href="{cp_edit_entry_url}" target="_blank" class="btn btn-default btn-sm btn-edit"><i class="fa fa-pencil-square-o"></i></a> | |
</p> | |
{/if} |
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
/* Google Fonts pre-load */ | |
/*Most Styles will go here Use Media breaks to modify for larger Devices (Responsive is Mobie-first) */ | |
/* Small devices (tablets, 768px and up) */ | |
@media (min-width: 768px) { | |
} |
NewerOlder