In this post I'll talk a bit about the next functionality of my Java Mediator for SDL Tridion templating -- uploading a JAR containing ITemplate classes into the Content Manager and executing a particular template. JAR Template Building Blocks In a very similar fashion to a .net assembly TBB, I implemented the functionality of having a new Template type for storing JARs inside a TBB, in a binary fashion. These TBBs have a special type, binary, that allows uploading a JAR. A JAR TBB contains Java classes, some of them representing implementations of the ITemplate interface. The actual interface is the TOM.Java proxy tridion.contentmanager.templating.assembly.ITemplate . I created a new Template type in configuration file Tridion.ContentManager.config , under node < configuration > / < templateTypeRegistry > / < templateTypes > : < add id = " 10 " name = " JAR TBB " mimeType = " application/java-archive " hasBinar...
talk is cheap. show me the code.