Last active
December 20, 2015 20:19
-
-
Save addisonhall/6189956 to your computer and use it in GitHub Desktop.
ExpressionEngine image placement within bodies of text using Matrix and MX Jumper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:channel:entries channel="pages" disable="categories|member_data|pagination"} | |
{!-- GRAB IMAGES WITH MX JUMPER, IF ANY --} | |
{page_images} | |
{exp:mx_jumper:put name="image_{row_count}"} | |
<figure class="align-{image_align}"{if image_width} style="width:{image_width}"{/if}> | |
<img src="{image_url}{url:normal}{/image_url}" alt="{image_alt}"> | |
<figcaption class="caption-and-credit"> | |
{if image_caption}<span class="image-caption">{image_caption}</span>{/if} | |
{if image_credit}<span class="image-credit">{image_credit}</span>{/if} | |
</figcaption> | |
</figure> | |
{/exp:mx_jumper:put} | |
{/page_images} | |
<div class="page-heading"> | |
<h1>{title}</h1> | |
</div> | |
{exp:mx_jumper:out_global} | |
{page_content} | |
{/exp:mx_jumper:out_global} | |
{/exp:channel:entries} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment