Is there a way of attaching a section to multiple nodes?
The scenario is this: imagine a bank of "pagelets" or content areas (standalone sections as StaticHTML type), I want to be able to say use a given section on whichever nodes I chose but I don't want to be restricted to attaching it to a template.
Basically every single page will have maybe 2 different pagelets which are shared so a change to a section will show across the whole site.
I would have thought this might be a fairly common requirement.
Could you explain why attaching a standalone section to a template won't do the job, please? That's the usual way to achieve this.
At the moment, I'm also seriously considering this scenario for Cuyahoga 2.0.
Attaching sections to templates works, but it's not very intuitive and you can end up with a lot of templates just because they each have a different section attached to it.
But on the other hand, I'm not completely convinced either if attaching sections to pages is such a good idea because it adds more complexity. Sections will be connected to a Node via three different ways: 1: directly to a Node; 2: via the Template and 3: via NodeSection (or whatever it is called).
Feels a little bit messy.
martijn,
it would actually only be 2 ways (since 1 could be implemented by 3)
Like vsub, im developing sites where the content is to be shared across multiple sites, and even between pages in the same site. For instance, im developing a niche events site, where we have entities like Venue which have value beyond a single section or even a single site.
i initially wanted to subclass ContentItem to participate in the new infrastructure (e.g. search, repository decorators etc), but content items are pegged to a single section.
in other words, the main reason for this request is to facilitate reuse of pieces of content.
ps.
thinking about this, i may be coupling model and view too tightly.
I remember that about one and half year ago, I worked on DNN version 4.4 (or near by) that do this. If a session contains a content of one module like StaticHTML, i can choose which page (or node) it will be visible. I think this is good and Cuyahoga should implement this idea!