This is a version of Symphony 2.3.1 bundled with the Resources utilities.
It is a working example of the approach explained in this article.
The goal in this ensemble was to add a Newsletter box on all pages and to illustrate the new ways of adding datasources & events to pages and widgets.
Browse the code for Home page, Master widget and Newsletter widget to understand what's going on.
In short:
/workspace/pages/home/config/resources.widgets.xml
holds the relation fromHome
page toMaster
widget/workspace/widgets/master/config/resources.datasources.xml
holds the relations fromMaster
widget to common datasources required for all pages/workspace/widgets/master/config/resources.widgets.xml
holds the relation fromMaster
widget toNewsletter
widget/workspace/widgets/newsletter/config/resources.events.xml
holds the relation fromNewsletter
widget toMail Chimp
event
The rest is XSLT.
NB: I added some hooks
in master.xsl
. I suggest you have a look at them.