Hi,
I’m working with EE 1.6.4 and running into a bug with the embed tag it seems. Here’s as simple an example as I could boil it down to:
The template:
{!-- img is a user defined global variable --}
<h1>Weblog Entries</h1>
{exp:weblog:entries orderby='title' sort='asc'}
{title}: {embed='tags/.debug' field='{img}/{title}'}
{/exp:weblog:entries}
The embedded template:
<h2>{embed:field}</h2>
The result:
<h1>Weblog Entries</h1>
Another Principle: <h2>/themes/dwlib_themes/default/Another Principle</h2>
Example Principle: {embed='tags/.debug' field='/themes/dwlib_themes/default/Example Principle'}
Fool proof: {embed='tags/.debug' field='/themes/dwlib_themes/default/Fool proof'}
Getting Started with ExpressionEngine: {embed='tags/.debug' field='/themes/dwlib_themes/default/Getting Started with ExpressionEngine'}
No Vote Principle: {embed='tags/.debug' field='/themes/dwlib_themes/default/No Vote Principle'}
...
As you can see the first entry gets processed fine, subsequent entries all display the embed syntax. The odd thing is that the tags are resolved properly in the embed parameters. So it seems for some reason the embed tag does not get resolved after the first iteration.
If either the {img} or the {title} tag is removed from the {embed} parameter then the code executes as expected. It does not matter whether the two tags are in the same parameter or different parameters; if they are both present in the embed tag things go wrong.
Am I missing something obvious?
Arnoud.
