Overview

MX Jumper allows you to copy pieces of content from one spot in your template into another. Why it is needed? For example to take some information from the entry to the page title. Usually, you need to request the same module twice, but with MX Jumper you just need one request only.

Requirements

  1. ExpressionEngine 2

Example

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">{exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mx_jumper</span><span style="color: #007700">:</span><span style="color: #0000BB">out_global}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">html&nbsp;lang</span><span style="color: #007700">=</span><span style="color: #DD0000">"en"</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">title</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">EEC</span><span style="color: #007700">.</span><span style="color: #0000BB">MS&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">{title}</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">title</span><span style="color: #007700">&gt;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">body</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">{exp</span><span style="color: #007700">:</span><span style="color: #0000BB">channel</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;channel</span><span style="color: #007700">=</span><span style="color: #DD0000">"news"</span><span style="color: #0000BB">}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mx_jumper</span><span style="color: #007700">:</span><span style="color: #0000BB">put&nbsp;name</span><span style="color: #007700">=</span><span style="color: #DD0000">"title"</span><span style="color: #0000BB">}{title}{</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mx_jumper</span><span style="color: #007700">:</span><span style="color: #0000BB">put}&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">channel</span><span style="color: #007700">:</span><span style="color: #0000BB">entries}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">body</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">html</span><span style="color: #007700">&gt;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">{</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mx_jumper</span><span style="color: #007700">:</span><span style="color: #0000BB">out_global}&nbsp;</span>
</span>
</code></div>
<br/>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">{exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mx_jumper</span><span style="color: #007700">:</span><span style="color: #0000BB">out_global}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{exp</span><span style="color: #007700">:</span><span style="color: #0000BB">channel</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;channel</span><span style="color: #007700">=</span><span style="color: #DD0000">"news"</span><span style="color: #0000BB">}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mx_jumper</span><span style="color: #007700">:</span><span style="color: #0000BB">put&nbsp;name</span><span style="color: #007700">=</span><span style="color: #DD0000">"author_post"</span><span style="color: #0000BB">}{screen_name}{</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mx_jumper</span><span style="color: #007700">:</span><span style="color: #0000BB">put}&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">channel</span><span style="color: #007700">:</span><span style="color: #0000BB">entries}<br />&nbsp;<br />{</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mx_jumper</span><span style="color: #007700">:</span><span style="color: #0000BB">out_global}&nbsp;<br /><br />{exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mx_jumper</span><span style="color: #007700">:</span><span style="color: #0000BB">out&nbsp;name</span><span style="color: #007700">=</span><span style="color: #DD0000">"author_post"</span><span style="color: #0000BB">}&nbsp;</span>
</span>
</code></div>
is this code works? [ Test it NOW! ]