Questions tagged [razormediator]

The Razor mediator for Tridion is an alternative template engine. It provides the power of .net and the well documented Razor syntax. Using the syntax it's possible to access Component fields and template package items. Examples of use are: @Component.Fields.title, @Component.Image.alt_text or @Fields.Metadata.publish_date.ToString(“dd/MM/yy hh:mm”)

Filter by
Sorted by
Tagged with
3
votes
2answers
130 views

Embedded Razor Templates

are there any limitations with embedded razor templates. The issue: <span>Level0</span> @importRazor("/webdav/020-D%20Design%20Master/Building%20Blocks/System/Template%20Building%20Blocks/...
9
votes
2answers
500 views

IFunctionSource functions for DWT in Razor?

We are working on Tridion 2011 SP1 and we always used DWT (Dreamweaver templates). We have a huge collection of usefull custom functions that we are using accross various dreaweaver templates. Due to ...
10
votes
2answers
833 views

Experience Manager and Razor templating

I have one simple question: We are using Razor templating in Tridion 2013 SP1. Is it including the Experience manager tags to the generated HTML? Or Do we need to add the EM tags manually?
9
votes
4answers
559 views

How to include partial (unbalanced) html in a Razor Mediator if statement?

When saving a Razor Mediator Template it fails anytime that I have an if statement with unbalanced html tags in side of it. @if (Fields.subtitle != null) { <div class="subtitleColor"...
7
votes
2answers
753 views

Make component link fields inline editable

I'm working on a Razor template to display a kind of samll FAQ section. Each item of this FAQ (composed by a question and an answer in rich text fields) is added to the FAQ list as a component link ...
7
votes
1answer
494 views

Link Resolving with Razor Mediator

I am pretty new with Razor Mediator and of course having some issues while testing my TBBs. I am writing a TBB that renders HTML for HTML5 videos like this. <h2>@Fields.title</h2> <...
3
votes
2answers
163 views

Is Razor Mediator compatible with Tridion Sites

We are planning to upgrade Tridion 2013 SP1 HR1 with Razor Mediator to Tridion Sites 8.5. Are there any breaking changes in 8.5 for Razor Mediator? Will Razor Mediator be supported in Tridion 9?
2
votes
1answer
628 views

How to retrieve component by specific Schema?

I have a schema id. based on that schema id i want to retrieve all components modified date (created by that schema). How to resolve it?