ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Parse order seems to vary since EE 2.2 ?!

June 24, 2011 1:42pm

Subscribe [3]
  • #1 / Jun 24, 2011 1:42pm

    lehrerfreund

    263 posts

    Hi,

    I got a code like this (in a snippet):

    <ul class="komLinks">
    {verwandte_beitraege}
     <li>
    <a href="http://{permalink={my_template_group}/1s}">{title}</a>
    </li>
    {/verwandte_beitraege}
    {if "{verwandte_beitraege:total_children}" == 0}
    {embed="{einbinden}/aehnliche_artikel" entry_id="{entry_id}" category_ids="{categories backspace='1'}{category_id}|{/categories}"}
    {/if}
    </ul>

    {verwandte_beitraege} is a Playa-field.
    Since updating to EE 2.2 the permalink-tag doesn’t get parsed; also the conditionals sometimes (!!!) worked and sometimes not (!!!). Really, no kidding.

    I first assumed it was a problem of Playa. But I found out that the problem is that the parse-order in EE 2.2 seems to have changed (the same code in 2.1.3 worked reliable). Interesting enough for me that it varies - sometimes works, sometimes not ...

    Just to ask around: Is it possible that my interpretation (new parse-order or anything like this) is correct?

  • #2 / Jun 27, 2011 5:56am

    John Henry Donovan

    12339 posts

    lehrerfreund,

    When did you install EE2.2? There was a hotfix added soon after for an issue with URL variables.

    See bug report here. Can you try the fix added by Robin in the comments please?

    When testing again please clear your cache

    Let us know if that works for you

  • #3 / Jul 09, 2011 7:13pm

    lehrerfreund

    263 posts

    Hi John,

    inbetween I have upgraded to 2.2.1 - still it does not work. My solution is just to use no snippet but to use the code directly in the template; therefore for me there is no urgent need to handle this. But perhaps it would be an issue for the bug-tracker (don’t know how to describe this issue ..).

    I tried this: I put the following code into a template (very similar to the code above):

    <ul class="komLinks">
                          {verwandte_beitraege cache="yes" refresh="100"}
                        <li>
                            <a href="http://{title_permalink={my_template_group}/1s}/{entry_id}/">{title}</a> ({entry_date format="%m/%Y"})
    
                        </li>
                          {/verwandte_beitraege}
                         {if "{verwandte_beitraege:total_children}" == 0}
                          {embed="{einbinden}/aehnliche_artikel" entry_id="{entry_id}" category_ids="{categories backspace='1'}{category_id}|{/categories}"}
                        {/if}
                      </ul>

    Then I made a snippet with exactly this code, calling it right before the code in the template (which is, just to clarify, exactly the same code). So the same thing should be shown twice. But the snippet doesn’t parse the link correctly.

  • #4 / Jul 11, 2011 4:56pm

    Brandon Jones

    5500 posts

    Hi lehrerfreund,

    The fix John Henry mentioned should take care of this. Glad you have a solution for now but let us know if you run into this again.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases