This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
 
exp:embed only gets parsed on first loop iteration when combining loop tag and global variable in embed parameters
Posted: 22 November 2008 11:19 PM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  2
Joined  09-24-2007

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.

Profile
 
 
Posted: 24 November 2008 11:54 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

A quirky bug, but a confirmed bug all the same.  Nice job of simplifying, and a fix is now in for the next build.  I’m going to drop you an email with a few more details in it, so keep an eye out for it.

Thanks for the sharp eye spotting this one!

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
 

This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66391 Total Logged-in Users: 47
Total Topics: 84715 Total Anonymous Users: 11
Total Replies: 454694 Total Guests: 176
Total Posts: 539409    
Members ( View Memberlist )