{exp:nsm_transplant:body}
{exp:nsm_transplant:body} … {/exp:nsm_transplant:body}
Parent tag pair that creates a context for nested {exp:nsm_transplant:content} tags and their corresponding output tags.
{exp:nsm_transplant:content}
{exp:nsm_transplant:content (string id)} … {/exp:nsm_transplant:content}
Must be nested inside {exp:nsm_transplant:body}. This tag pair caches it's content ready for output.
Cache and output inside the {exp:nsm_transplant:body} content example:
{exp:nsm_transplant:body}
{exp:nsm_transplant:content id="my_tag"}
The cached content
{/exp:nsm_transplant:content"}
{my_tag} ← Outputs "The cached content"
{/exp:nsm_transplant:body}
Parameters
id="tag_name" [required]
The id parameter value is the tag which will be replaced with the tag content.
{exp:nsm_transplant:output}
{exp:nsm_transplant:output (string id)}
Output cached contents of {exp:nsm_transplant:content} tag outside of the {exp:nsm_transplant:body} context.
Cache and output outside the {exp:nsm_transplant:body} content example:
{exp:nsm_transplant:body}
{exp:nsm_transplant:content id="my_tag"}
The cached content
{/exp:nsm_transplant:content"}
{/exp:nsm_transplant:body}
{exp:nsm_transplant:output id="my_tag"} ← Outputs "The cached content"
The {exp:nsm_transplant:output} tag can also be used inside embedded templates such as headers and sidebars to render entry specific breadcrumbs, widgets etc.
Parameters
id="my_tag" [required]
The id for the cached data to output.