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.x | 2.1.x | 2.2.x | 2.3.x | 2.4.x | 2.5.x | 2.6.x | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.7.4 | 2.7.5 | 2.7.6 | 2.7.7 | 2.7.8 | 2.7.9 | 2.7.10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No | No | No | No | No | 1.2.0 | No | No | No | No | No | No | No | No | No | No | No | No. 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:
- select boxes (core)
- tag lists (core)
- Association Field
- and others
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.
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