I am working on a project which requires Tridion Component Templates to be written in XSLT and page templates to be written in C#. I know XSLT basics and I am totally new to C#.
Can anyone guide me to any sources of learning XSLT and C# templating for Tridion 2011. It would be of great help if you could. Thanks in advance!
If there is any better way to do the templating, suggestions are welcome. We can see if our client is accomodative for that.
Regards, Keirthana
+1 to Nuno's point, the instructions, examples, and access to someone that's done it before makes training well worth it.
SDL Tridion Compound Page Templates are not written in C# alone, but use a combination of Template Building Blocks. Template Building Blocks (TBBs) consist of a layout part (typically DWT) as well as C# TBBs.
Template approach depends on the developers, development process, and available technologies. I've seen programmers struggle with Component Templates, not because of Tridion, but simply because of the languages involved. Be sure to get a good fit for your customer.
XSLT Component Templates may make SDL Tridion's inline editing features harder to implement. Though you have the flexiblity from XSLT's <template match="">
, you lose some things you get "for free" such as:
An alternative would be Compound Component Templates (modular templating). But again it depends on your environment.
Reach out for training through SDL.com.
I've written some basic introductions and example for XSLT CTs and C# TBBs, but these aren't a substitute for training.
You mention being familiar with XSLT, I find using basic XSLT functions to help understand component details.
I've attempted the excercise Nuno describes as well (video included).
The biggest risk in skipping training, IMO, is getting either BluePrinting or the content model wrong. Definitely come back to ask questions as you go along.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With