On 30 Mar 2006, at 19:20, Mike Henderson wrote:
Hi,
I'd be interested in seeing if a T4 version of DynamicBlock helps:
http://www.behindthesite.com/blog/C1931765677/E20060309215538/
index.html
It's a complete rewrite from the T3 version and should address
Howard's concerns. It actually generates the page containing the
requested component, wrapped in a Block on the fly.
You sir are a gentleman and a scholar. This looks like exactly what I
was after in the first place! I've got the other route working now as
well, so looks like I'm spoilt for choice.
The other thing I've built that might be of interest to some people
is some hivemind magic that makes it possible for libraries to /
automatically/ make themselves available to applications (and other
libraries) via a hivemind contribution. Effectively what happens is
that the library is 'autoloaded' into the current namespace when a
component or page is first referenced from it. This isn't ideal for
every situation, because of the risk of namespace conflicts, but it's
extremely useful for me, and it might help with this component too,
since you wouldn't need to explicitly reference the library
containing the dynamically inserted component from the namespace
where you're using the dynamic block.
If anyone's interested, more than happy to share the code once I've
sanitized it.
Paul