Created
October 14, 2010 00:49
-
-
Save leevigraham/625306 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{!-- | |
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