Skip to content

Instantly share code, notes, and snippets.

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 sjelfull/626111 to your computer and use it in GitHub Desktop.
Save sjelfull/626111 to your computer and use it in GitHub Desktop.
{!--
Custom channel fields: http://cl.ly/e047e8b070dd08a74f8d
* {test_matrix}
- Cells:
- {test_matrix_image}
- {test_matrix_text}
* {page_content}
Entry Content: http://cl.ly/e21bf6f23fa4f1e8fe2d
--}
{!-- Wrap everything in a transplant container--}
{exp:nsm_transplant:body}
{!-- Loop over the entries --}
{exp:channel:entries}
<h1>{title}</h1>
{!-- To test we'll just output the matrix --}
<h2>Test Output</h2>
<ul>
{test_matrix}
<li>{image_{row_count}}</li>
{/test_matrix}
</ul>
{!-- Lets' create the transplant cached content --}
{!-- Open the matrix --}
{test_matrix}
{!-- Create the key --}
{exp:nsm_transplant:content id="image_{row_count}"}
{!-- Create the key content --}
url: {test_matrix_image} | text: {test_matrix_text}
{/exp:nsm_transplant:content}
{/test_matrix}
<h2>Transplanted Output</h2>
{page_content}
{/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