Why is the Razor template not showing up in Tridion (after installing it)?

I installed Razor mediator 1.2 on the Tridion server, and this server also has .NET 4.0.

I restarted all the services as they suggested in the Razor-mediator docs.

After installation, the RazorTemplate parameter does not appear in the TemplateType drop-down list when we try to create a new TBB.

Any ideas on why the RazorTemplate option doesn't show up in Tridion?

+1
source share
4 answers

Some suggestions:

  • If you followed all the steps correctly, try clearing your browser cache. This often does the trick in these cases.

  • If you are still not working, you can check Tridion.ContentManager.config and find any link to the razor. If you cannot find, this means that the installer did not work correctly. (Maybe run again with administrator privileges)

  • Make sure you are creating a TBB, not a component template. Razor patterns are tbb

+3
source

Check the Tridion configuration file Tridion.ContentManager.config for the following, assuming the installer is installed successfully. You can verify this from the GAC assembly, as well as double check the PublicKeyToken using the configuration.

Reseller Section:

 <mediators> ... <mediator matchMIMEType="text/x-tcm-cshtml" type="Tridion.Extensions.Mediators.Razor.RazorMediator, Tridion.Extensions.Mediators.Razor, Version=1.2.0.0, Culture=neutral, PublicKeyToken=5eeceedb34d9dfd7" /> </mediators> 

Configuration Sections:

 <configSections> ..... <section name="razor.mediator" type="Tridion.Extensions.Mediators.Razor.Configuration.RazorMediatorConfigurationSection, Tridion.Extensions.Mediators.Razor, Version=1.2.0.0, Culture=neutral, PublicKeyToken=5eeceedb34d9dfd7" /> ... </configSections> 

Types of templates:

 <templateTypes> .. <add id="8" name="RazorTemplate" mimeType="text/x-tcm-cshtml" hasBinaryContent="false" contentHandler="Tridion.Extensions.Mediators.Razor.RazorContentHandler, Tridion.Extensions.Mediators.Razor, Version=1.2.0.0, Culture=neutral, PublicKeyToken=5eeceedb34d9dfd7"> <webDavFileExtensions> <add itemType="TemplateBuildingBlock" fileExtension="cshtml" /> </webDavFileExtensions> </add> </templateTypes> 

If you configured it correctly, it could just be caching the user interface.

You can force the cache to be cleared by updating the modification counter in System.config (web \ WebUI \ WebRoot \ Configuration). 8 is just my cms number, it may be different for your CMS.

 <server version="6.1.0.55920" modification="8"> 
+2
source

Could you check that you are looking for COM + in the right place, see screenshots ---

False: -! [Wrong place] [1]

Right place On right: -! []

enter image description here

+2
source

Please try again.

0
source

Source: https://habr.com/ru/post/1438351/


All Articles