x
 
Create New Page
 View Previous Changes    ( Last updated by Sue Crocker )

Embeds Inside Container Tags

Question:

I am trying to embed a template inside another container, such as:

{exp:weblog:entries...}

{
/exp:weblog:entries}

But nothing gets shown, why?

Answer:

This is not an appropriate use of the embed tags. See Rick’s explanation:


You can’t embed templates within tags. Embeds are considered template elements, not tag elements.

If you are just trying to pass a small snippet of information, then a user defined global variable would be far more appropriate.

There are exceptions to this with the ability to pass variables via embeds.

Category:Troubleshooting Category:Templates Category:Embeds