Reputation: 11
Please let me know How to call Vbscript function in the Compound template (using C#fragment) in Tridion 2011?
Upvotes: 1
Views: 394
Reputation: 6191
OK - just for fun, a strictly literal answer. Please note that I do not advocate this approach.
As I said - this is a strictly literal answer to your question as stated. It's enough to say that it's technically possible to do what you are asking, but it won't be useful, because apart from all the technical grief of working through all those layers, what you want to do in a template is usually to invoke the Tridion APIs, and of course, the APIs that are available from the VBScript templating environment are different from the ones available via Compound Templating.
In practice, you'll probably find that your old VBScript templates are due for a re-write anyway. Having to do this occasionally is a good thing.
Upvotes: 2
Reputation: 1390
Sounds like you are mixing legacy style VBScript page templates with current style Compound component templates (or something similar). Mixing the two types is (sometimes) possible, but you cannot call functions in page templates from your component templates like you could with a pure VBScript setup.
You will need to re-implement your VBScript function's functionality as either a Dreamweaver template callable custom function or a .Net based Template Building Block (C# fragment or .Net assembly) depending on your use case.
Upvotes: 3
Reputation: 3624
I'm pretty sure this isn't possible. You can't mix the legacy templates with Modular templates.
Upvotes: 4