Skip to main content
1 of 12
Shiva
  • 2.2k
  • 11
  • 19

Razor mediator integration with UI2012 - Best practices

We are using Razor Mediator 5.3 templating engine with Tridion 2011 SP1 edition and host an ASP .NET 4.0 application. Now, we are trying to integrate UI2012 with the application. I need some suggestions and best practices from past implementations.

Current State (without UI2012 integration)

  1. A Razor Page template for the page
  2. A site master page

Integration with UI2012

  1. Setup a UI2012 placeholder in the Master sitemap with an ID UI2012Content

  2. I have created a new compound RPT with the following source - RPT_UI2012

  • RPT UI2012 Start TBB - Source |asp:Content ID="UI2012ID" ContentPlaceHolderID="UI2012Content" Runat="Server"|
  • Enable inline edit for a page with parameter reference as per the documentation.
  • RPT UI2012 End TBB - Source |/asp:Content| |Blah.. Other Razor Code|

The overall page template includes the existing Razor Page template and the above RPT_UI2012 compound template.

Question: Should I just render the package with the current state and add the above compound template to it with package inclusion? Are there any best practices around implementation with UI2012?

I also see that there is an open enhancement request in the Razor Mediator forum as well which encourages the implementation with the relevant TDCL.

Thanks for your time and suggestions!

Shiva
  • 2.2k
  • 11
  • 19