ruedacal / razor-mediator-4-tridion

Automatically exported from code.google.com/p/razor-mediator-4-tridion
0 stars 0 forks source link

Not able to import razor template even after placing import settings #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We have placed the below in Tridion.config file :
<razor.mediator cacheTime="60" extractBinaries="true" 
adminUser="ADS\svc.icmsyse1">
    <namespaces>
      <!-- <add namespace="System.Linq" />-->
      <!-- <add namespace="Test.Sample" />-->
    </namespaces>
    <assemblies>
      <!-- <add assembly="C:\Program Files\Assembly\Test.Sample.dll" /> -->
      <!-- <add assembly="RazorSample.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=60ad7434f03dfcdc" /> -->
    </assemblies>
    <imports>
      <!-- <add import="tcm:120-2233-2048" />-->
      <!-- <add import="/wevdav/020 Design/Building Blocks/System/TBBs/Helpers/razor-helpers.cshtml" />-->
      <!-- <add import="C:\Program Files\Razor Mediator\razor-helpers.txt" />-->
      <!-- <add import="tcm:120-2200-2048" publications="020 Design Master,030 Another Web Design" />-->
    </imports>
    <importSettings includeConfigWhereUsed="true" includeImportWhereUsed="true" replaceRelativePaths="false" />

What steps will reproduce the problem?
1. We are using @importRazor(path) , here the path we are using is webdav path 
of another razor template building block
2. Then the TBB used in import statement is not imported
3.

What is the expected output? What do you see instead?
TBB used in importRazor function should be imported

What version of the product are you using? On what operating system?
We are using SDL Tridion 2011 and WINDOWS 64 bit

Please provide any additional information below.

Original issue reported on code.google.com by shashi.k...@gmail.com on 20 Mar 2013 at 5:54

GoogleCodeExporter commented 8 years ago
Hi Sashi, 

I had the same problem, after adding the MTSUser as an impersonation user I was 
able to import my TBBs successfully. I hope it helps.

Eric.

Original comment by eric.hu...@gmail.com on 4 Apr 2013 at 8:45