Skip to content

Instantly share code, notes, and snippets.

@davidbehan
Last active December 20, 2015 14:29
Show Gist options
  • Save davidbehan/6146683 to your computer and use it in GitHub Desktop.
Save davidbehan/6146683 to your computer and use it in GitHub Desktop.
Quick access to common coding snippets used in EE
# EE Hacksaw
# - - - - - - - - - - - - - - - - - - - - - - - -
{exp:eehive_hacksaw chars="100" append="…" allow=""}{news_excerpt}{/exp:eehive_hacksaw}
# CE Img
# - - - - - - - - - - - - - - - - - - - - - - - -
{exp:ce_img:single src="{news_image}" crop="yes" width="220" height="147" fallback_src="no-image.png" url_only="yes"}
# Channel Entries
# - - - - - - - - - - - - - - - - - - - - - - - -
{exp:channel:entries channel="latest_news" limit="4" dynamic="off" status="open" paginate="bottom" disable="categories|category_fields|member_data"}
# Entry Date
# - - - - - - - - - - - - - - - - - - - - - - - -
{entry_date format="%d%S %F, %Y"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment