Plugin

EE 1
EE 2
Pre Embed

Developer

Rob Sanchez - Barrett Newton

3rd Party (Free)

Download

Compatibility

  • LG Addon Updater
  • Multi Site Manager
  • Stand Alone Entry Form

Requirements

  • jQuery for the Control Panel

Tags

Embed a template before other tag parsing, so you can re-use templates more easily.

Installation

Copy the /system/expressionengine/third_party/pre_embed/ folder to your /system/expressionengine/third_party/ folder

Usage. The old way.

    {!--template--}
    {exp:channel:entries channel="your_channel"}
        {embed="site/embed" title="{title}" your_custom_field="{your_custom_field}"}
    {/exp:channel:entries}

    {!--embed--}
    <p>{embed:title}: {embed:your_custom_field}</p>

Usage. The new way.

{!--template--}
    {exp:pre_embed parse="inward"}{!--yes, parse="inward" is necessary--}
    {exp:channel:entries channel="your_channel"}
        {pre_embed="site/something"}
    {/exp:channel:entries}
    {/exp:pre_embed}

    {!--embed--}
    <p>{title}: {your_custom_field}</p>

Tada! Now you can re-use the same embed more easily.

Download Pre Embed

EE Version Downloads Add-On Version Release Date
2.+ Download 2011-03-06 01:00 AM

This entry was last updated April 20, 2012, 3:58 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

1 Review:

Bryant 04.10.11

Bryant
Rating - {addon_rating_average}

Brilliant plugin that lets you build sites using partials in a smart and logical way.  Seperating channel:entries tags and the actual markup is essential to my build process and this keeps my templates DRY…love it!