EE 1
EE 2
Pre Embed
Developer
3rd Party (Free)
40 downloads (last 90 days)
Compatibility
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Better Workflow
- Matrix
Requirements
- jQuery for the Control Panel
Categories
Plugin
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 02:00 AM |
This entry was created March 14, 2011, 11:18 am.
This entry was last updated April 20, 2012, 4: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!
2 Reviews:
MikeMc 05.03.13
Fantastic. Save so much time when developing complex sites, I am also using this in conjunction with regular embeds so I can put multiple channel output very easily on one page and still allow me to create a great header and footer embed.
Bryant 04.10.11
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!