Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# leemhenson 2/4/2006 7:08 AM
Hi

I wonder if it would be useful to create some kind of "includes" management for a site. Currently (correct me if I'm wrong), if you want to use an html include directive across a few pages, you have to use a statichtml section and edit it on every page (or create a module - even more work). It would be good if the site administrator could create an "include section" by specifying the file to be included. Then that special section-type would appear in the drop-down list when adding a section to a page.

Does that sound plausible? Or is there a better way?
# martijnb 2/4/2006 8:54 AM
An alternative is to create a standalone section and attach that to a template. Note that templates are 'virtual' so if you want an include that doesn't have need be on every page, you can create a second template based on the same ascx control and stylesheet that doesn't have the section attached.
# leemhenson 2/4/2006 9:08 AM
Does that become unworkable if you have several different includes?
# martijnb 2/4/2006 9:24 AM
Uhm, do you mean several as in 'several per page' or 'several across different sections of the site'?
# leemhenson 2/4/2006 9:45 AM
Both. :)
# martijnb 2/5/2006 9:57 AM
Well, euhm I wouldn't say unworkable but it's kind of a hack. To have more 'includes' one one page, you have to define separate placeholders in the template control, one for each include.

The problem is the indirection here. You want to include something while creating a new page (if I'm correct), but this has to be done via the templates and I can imagine that this is confusing.
# leemhenson 2/6/2006 3:21 AM
Thinking about this a bit more, I think maybe what I need is to attach a standalone section to multiple nodes rather than a template. Currently it disappears off the standalone section list once it is attached to a single node. If you could attach it to multiple nodes, edit it once and have that change reflected on all the other nodes it's attached to, that would be perfect.