Dashes vs. periods in view names breaks shape tracing?

Topics: Troubleshooting, Writing modules, Writing themes
Dec 13, 2011 at 1:14 AM

I ran into an interesting situation, and I'm not sure if this is a bug or something I am not doing correctly.

I have a controller that returns a ShapeResult.  If I return it like this:

return new ShapeResult(this, Shape.Explore_Index(model));

I can make a view called Explore.Index.cshtml, have access to the shape inside the view, and it will also be accessible through the shape tracing interface to see model properties etc.

If I return the shape like this:

return new ShapeResult(this, Shape.Explore__Index(model));

I can make a view called Explore-Index.cshtml, and I have access to the shape in the view, but shape tracing cannot find a shape called Explore__Index anywhere in the content zone to inspect.

Why is this?

Coordinator
Dec 13, 2011 at 5:57 PM

You can't use - in your shape names, as they are reserved for alternates. Thus this won't be part of the shape type name.