5 users online. Create an account or sign in to join them.Users

Search

My Product section's Category field is a Reference Link that points to Reflection fields in two other sections (Category 2 and Category 3).

Product data source, not grouping by Category gives (simplified):

<data>
    <products-by-category-id>
        <section id="1" handle="products">Products</section>
        <entry id="68">
            <name handle="b2">B2</name>
            <category>
                <item id="67" handle="ar-r-b2" section-handle="categories-3" section-name="Categories 3">AR / R / B2</item>
            </category>
        </entry>
        <entry id="95">
            <name handle="b2-c">B2 C</name>
            <category>
                <item id="67" handle="ar-r-b2" section-handle="categories-3" section-name="Categories 3">AR / R / B2</item>
            </category>
        </entry>
        <entry id="149">
            <name handle="dummy">Dummy</name>
            <category>
                <item id="66" handle="ar-r" section-handle="categories-2" section-name="Categories 2">AR / R</item>
            </category>
        </entry>
    </products-by-category-id>
</data>

Product data source, grouping by Category gives (simplified):

<data>
    <products-by-category-id>
        <section id="1" handle="products">Products</section>
        <category link-id="66" link-handle="ar-r" value="AR / R">
            <entry id="149">
                <name handle="dummy">Dummy</name>
                <category>
                    <item id="66" handle="ar-r" section-handle="categories-2" section-name="Categories 2">AR / R</item>
                </category>
            </entry>
        </category>
    </products-by-category-id>
</data>

For some reason, the number of entries is reduced to just the one.

The Dummy category is in a different section to the other two (Categories 2 instead of Categories 3 as it is the parent category of the other two), but I was expecting the grouping to still output all three entries.

If I put one of the missing products in the ar-r level 2 category, it is output, so it seems grouping can only be applied to entries from one section, and not multiple sections which the Select Box Link/Reference Link allows for.

I probably won't need to group in this way, but thought I'd post in case it's not intended behaviour.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details