Hey Cocoaholic,
I love the REEOrder module, it’s helped out with a lot of manual functions for clients. I’m wondering if there’s a possible bug or issue when using the XML function. I can’t imagine for the life of me why this is happening, but it’s only inside of an xml file.
My XML template uses this code:
<?xml version="1.0" encoding="UTF-8"?>
<content>
{exp:weblog:entries weblog="home_page_banner" limit="4" orderby="homepage_reeorder" dynamic="off"}<image path="{homebanner_image}"{if banner_url != ""} {banner_url}link="{address}" win="{if opens_in != ""}_blank{if:else}_self{/if}"{/banner_url}{/if} />
{/exp:weblog:entries}</content>
That outputs this:
<?xml version="1.0" encoding="UTF-8"?>
<content>
<image path="/images/banners/Sprint_Banner_2.jpg" link="http://www.sprintsave4cu.com/" win="_blank" />
<image path="/images/banners/Rewards_header_banner_3.jpg" link="https://www.uchooserewards.com/members/home.php?sid=40XXdKrlo40" win="_blank" />
<image path="/images/banners/HeaderBanner2-UltFreeCheck.jpg" link="http://198.171.234.140/index.php/banking/checking/" win="_self" />
<image path="/images/banners/HeaderBanner1-75thAnniversary.jpg" link="http://198.171.234.140/images/uploads/anniversary_calendar.pdf" win="_blank" />
</content>
That renders in the order in which the content was posted, and ignores the REEOrder custom fields entirely.
However, when I create a standard page using the exact same snippet of content like this:
{exp:weblog:entries weblog="home_page_banner" limit="4" orderby="homepage_reeorder" dynamic="off"}<image path="{homebanner_image}"{if banner_url != ""} {banner_url}link="{address}" win="{if opens_in != ""}_blank{if:else}_self{/if}"{/banner_url}{/if} />
{/exp:weblog:entries}
I end up getting this, which is the correct ordered rendering:
<image path="/images/banners/Sprint_Banner_2.jpg" link="http://www.sprintsave4cu.com/" win="_blank" />
<image path="/images/banners/HeaderBanner2-UltFreeCheck.jpg" link="http://198.171.234.140/index.php/banking/checking/" win="_self" />
<image path="/images/banners/HeaderBanner1-75thAnniversary.jpg" link="http://198.171.234.140/images/uploads/anniversary_calendar.pdf" win="_blank" />
<image path="/images/banners/Rewards_header_banner_3.jpg" link="https://www.uchooserewards.com/members/home.php?sid=40XXdKrlo40" win="_blank" />
If anyone has any suggestions or insight, I’d appreciate it. I’m going bonkers! :D