Skip to content

Instantly share code, notes, and snippets.

@eheiser
Created March 21, 2012 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eheiser/2146555 to your computer and use it in GitHub Desktop.
Save eheiser/2146555 to your computer and use it in GitHub Desktop.
NSM transplant
{exp:nsm_transplant:body} {!-- allows to replace {image-1} with actual image code --}
{exp:channel:entries channel="topics" disable="member_data|pagination" entry_id="{embed:the_id}"}
<div id="info">
<h3 class="png">Info / facts over {title}</h3>
<div>
<div class="def">{topic_intro}</div>
{topic_text}
{!-- looping through the matrix, caching the output --}
{topic_images}
{exp:nsm_transplant:content id="image-{row_count}"}
<figure class="{orientation}">
{exp:ce_img:size src="{image}" max_width="{size}"}
<img src="{sized}" alt="{alt}" width="{width}" height="{height}" />
{/exp:ce_img:size}
{if caption}
<figcaption>{caption}</figcaption>
{/if}
</figure>
{/exp:nsm_transplant:content}
{/topic_images}
</div>
</div>
{/exp:channel:entries}
{/exp:nsm_transplant:body}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment