Bug: Simple Section / Product lists like:
Are very unreliable in SD2013. Often entire sets of products are missed.
Demo:
Create a new site. Into the "Welcome To Our Site" fragment details paste:
This is just a simple loop that displays all Section Names in bold, followed by all Product Names within that Section. A bit of PHP totals the number of Products displayed.
Now preview the site and look at the home page. All Section Names display but sometimes no / some / all Product Names. Preview again and if you're lucky some more show.
Another failure mode: Close and restart SD. No Products show. Now open a Section in the Content Tree, revisit the home page and that Sections products may now show, but no others.
The above was demonstrated using Preview Store but Publish To Web is equally unreliable.
Code:
<actinic:block type="EntireSectionList"> <actinic:block type="ProductList"> do something </actinic:block> </actinic:block>
Demo:
Create a new site. Into the "Welcome To Our Site" fragment details paste:
Code:
!!< <actinic:block php="true">$count = 0;</actinic:block> <actinic:block type="EntireSectionList"> <br /><b>[SectionName] ,</b> <actinic:block type="ProductList"> [ProductName] <actinic:block php="true">$count++;</actinic:block> </actinic:block> </actinic:block> <br />Items: <actinic:block php="true">echo $count;</actinic:block> >!!
Now preview the site and look at the home page. All Section Names display but sometimes no / some / all Product Names. Preview again and if you're lucky some more show.
Another failure mode: Close and restart SD. No Products show. Now open a Section in the Content Tree, revisit the home page and that Sections products may now show, but no others.
The above was demonstrated using Preview Store but Publish To Web is equally unreliable.
Comment