Here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft CMS.
This file contains 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
@include handhelds { | |
table.responsive { | |
width: 100%; | |
thead { | |
display: none; | |
} | |
tr { | |
display: block; | |
} | |
td, th { |
This file contains 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
{# | |
# SECTION_NAME is the name of the section for events | |
# allEvents, futureEvents, event can be anything | |
# Not sure where I got this sample from | |
#} | |
{% set allEvents = craft.entries.section('SECTION_NAME').limit(3).find() %} | |
{% set futureEvents = [] %} | |
{% for event in allEvents %} |