ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE2 Sugar for Espresso

May 24, 2011 11:40pm

Subscribe [5]
  • #1 / May 24, 2011 11:40pm

    Cheif

    626 posts

    Using Espresso for development the lack of a proper EE2 Sugar for Espresso proved a little frustrating, so I decided to rework the original version provided by Anthony Shorts and did a simple search/replace for weblog/channels so it now pumps out proper EE2 syntax.

    There was a heap of snippet shortcuts (type it out and hit tab key for auto complete) that I didnt know even existed and have documented the main ones below:

    entries: A full channel entries tag !

    var: {assign variable}

    path: {path=""}

    seg: {segment_}

    switch: {switch[one, two]}

    att: {attibute}

    style: <link rel=“stylesheet”...

    if: {if == } {/if}

    ifelse: {if== }{if:else}{/if}

    page: {paginate}

    cats: {categories$1}{category_name}{/categories}

    rel: {related_entries id=}...{/related_entries}

    rev: {reverse_related_entries channel=}...{/reverse..}

    next: {exp:channel:next_entry channel=}...{/exp:channel:next_entry}

    cat: {exp:channel:categories}...{/exp:channel:categories}

    catarch: {exp:channel:category_archive channel}...{/exp:channel:category_archive}

    entry_form: {exp:channel:entry_form channel=}...{/exp:channel:entry_form}

    commententries: {exp:comment:entries channel=}...{/exp:comment:entries}

    membercustom: {exp:member:custom_profile_data}...{/exp:member:custom_profile_data}

    memberlogin: {exp:member:login_form return=}...{/exp:member:login_form}

    This file is “as is” I wont be developing any functionality or anything else as I just needed to get the EE1 version using EE2 tags.

    For the original file as listed on MacRabbits forums: http://wiki.macrabbit.com/forums/viewthread/45/


    Oops, here’s the link

  • #2 / May 24, 2011 11:50pm

    Lisa Wess

    20502 posts

    Hi Cheif, I’ve removed the attachment in line with our Community News Guidelines, which includes some excellent ways you might get your add-on hosted for download.

    Thank you.

  • #3 / May 25, 2011 3:40am

    Wolfram

    115 posts

    Hello Cheif,
    wonderful – thanks a lot for sharing!

    Wolfram

  • #4 / May 26, 2011 12:09pm

    MID

    166 posts

    Hi Cheif,

    Thanks for this - I’d like to download it. Do you have an updated link?

  • #5 / May 26, 2011 7:37pm

    Cheif

    626 posts

    Check again, it’s the last line of my post !

  • #6 / May 27, 2011 6:53am

    MID

    166 posts

    Got it, thanks!

  • #7 / Jun 16, 2011 1:06pm

    tpayton

    172 posts

    Looks like the link is dead or perhaps the server down. Can you PM it, or check your link? Thanks.

  • #8 / Sep 28, 2012 5:41am

    vladyn

    176 posts

    Does anyone have this sugar version for EE1, but working with html syntax highlighting and auto comple for Espresso 2. I noticed that there is some difference from Espresso 1 and probably that is the reason for to work with ee tags, but not with html?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases