This project is read-only.

Help needed for Orchard.Templates module

Topics: Customizing Orchard
May 30, 2014 at 6:18 AM

I have some trouble with the Templates module. Version is 1.8.1. Basically I have a widget that display a shape with the name defined in its setting when created. I have no problem putting that shape in a theme's view. However when I tried to use the templates module to replace the view file. It gives errors like the following:
Line 97:                     throw new OrchardException(T("Shape type {0} not found", shapeMetadata.Type));
Line 98:                 }
Line 99:             }
Line 100:
Line 101:            foreach (var frameType in shape.Metadata.Wrappers) {

Source File: d:\Codebase\Website\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs    Line: 99 
Here the template
var d = "abc";
var e = Math.Abs(-1.3f);
    <a href="@Url.Action( "Handler", "RandomQuotes", new { Area = "Random.Quotes" } )">
The variables on top is just testing whether calling methods works. I figured that it is the @Url.Action causing the exception. If I remove that line, everything works.

Is there any limitation of this module? Or is it not suppose to be used like this?

Thanks for any insights!