5 users online. Create an account or sign in to join them.Users
Grouping XML output reducing entries
This is an open discussion with no replies, filed under Troubleshooting.
Search
Create an account or sign in to comment.
5 users online. Create an account or sign in to join them.Users
This is an open discussion with no replies, filed under Troubleshooting.
Create an account or sign in to comment.
Symphony • Open Source XSLT CMS
--with-xsl)
My
Productsection'sCategoryfield is a Reference Link that points to Reflection fields in two other sections (Category 2andCategory 3).Productdata source, not grouping byCategorygives (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>Productdata source, grouping byCategorygives (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
Dummycategory is in a different section to the other two (Categories 2instead ofCategories 3as 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-rlevel 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.