Search

Hello, I found out that the subsection manager cannot recurse, even though the UI does (it's easy to create infinite levels of 'child' elements inside each other, pretty cool).

So in order to get infinite levels of recursion, I figure I would have the datasource export all items as a flat list with an ID-reference to their children, and then manually glue together all parent-child relationships.

Would there a better solution out there?

Are you talking about outputting nested subsections in your data source? The 2.x branch offers a setting in the field preferences how many levels of nested subsection should be returned in the data source. I'm not sure if the feature has even been backported to 1.x in the meantime.

Yes I am. Sounds fantastic! Will try it out. How stable is 2.x branch?

Looks promising, also how the field selection has moved to the datasource instead of in the section. But I couldn't seem to select the subsections that are in turn part of a child element

If anyone else encounters the same problem, it seems as if the 'manually gluing' isn't very hard:

<xsl:template match="/data/things/entry">


    do stuff


    <xsl:variable name="sub-ids" select="sub-things/item/@id"/>
    <xsl:apply-templates select="/data/things/entry[@id=$sub-ids]" /> 


</xsl:template>

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details