Hi,
I’m having a problem with embedded templates. Is there any restriction on what can be included in an embedded template.
I’m embedding a template based on the third segment of the URL and then in that embedded template I’m displaying a list of weblog entries. For example the index page looks like this:
{if segment_3}
{embed="{my_weblog}/feature_detail"}
{if:else}
{embed="{my_weblog}/feature_home"}
{/if}
and the embedded “feature_home” template looks like this
<h2>Title</h2>
{exp:weblog:entries weblog="{my_weblog}" category="83"}
{exp:textile}
{body}
{/exp:textile}
{/exp:weblog:entries}
<dl>
{exp:weblog:entries weblog="{my_weblog}" category="84" orderby="title" sort="asc"}
<dt><a href="{title_permalink="{my_weblog}/features"}" title="{title}">{title}</a></dt>
{exp:textile}
<dd>{summary}</dd>
{/exp:textile}
{/exp:weblog:entries}
</dl>
It’s very strange because in the embedded page the first entries call works great, but the second entries call doesn’t return anything. I can’t understand it at all why one would work and one wouldn’t. Is there a limit of one entries call when embedding templates?
Thanks
Mark
