1.2.0developmentAssociation Output

Inline XML

Clone URLhttps://github.com/mazedigital/association_output.git

Add as a submodulegit submodule add https://github.com/mazedigital/association_output.git extensions/association_output --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
NoNoNoNoNo1.2.0NoNoNoNoNoNoNoNoNoNoNoNo. Soon?

Readme

Association Output for Symphony: Inline XML

When working with associated entries in Symphony, you usually need two Data Sources to fetch all your content:

  • one that returns your parent entry, adding the ids of your associations to the parameter pool and
  • another one that returns your associations based on these values in the pool.

While this concept is powerful, it results in related content that is spread across different nodes you have to manually match in your XSL templates. Association Output simplifies this process by providing an interface to select associated content directly in your main Data Source. Associated entries will be returned inline in your Data Source – no need to set output paramters and secondary Data Sources.

Performance and Caching

Under the hood, Association Output creates output parameters dynamically and uses core Data Sources to fetch the associated entries. So there shouldn't be any noticeable performance differences between the usual approach to attach associated entries and this one. Please keep in mind though that returning a few thousand associations in your XML will result in declined performance, as usual.

Caching should work as with any other Data Source.

Field Compatibility

Association Output is compatible with all fields using Symphony's core association system:

Acknowledgement

This project has kindly been funded by Bernardo Dias da Cruz, Ben Babcock, Juraj Kapsz, Daniel Golbig, Vojtech Grec, Andrea Buran, Brendan Abbot, Roman Klein, Korelogic, Ngai Kam Wing, David Oliver, Patrick Probst, Mario Butera, John Puddephatt, Goldwiege, Andrew Minton, munki-boy, Martijn Kremers, Ian Young, Leo Nikkilä, Jonathan Mifsud and others. Read more.

If you like this extension, please consider a donation to support the further development.

PayPal Donation

Version history

Requires Symphony 2.5

  • Added a datasource property which when set will not run the association output (useful for caching)
  • Add AssociationOutputPostExecute delegate so other extensions can take actions after the Association Output is added to the XML

Requires Symphony 2.5

  • Added Cacheable Data Source support
  • #10: Fixed handling of sections without fields (thanks @tonyarnold!)

Requires Symphony 2.5

  • Fixed grouped XML handling

Requires Symphony 2.5

  • First release